(e: React.ChangeEvent<HTMLInputElement>)
| 9 | const [preferences, setPreferences] = usePreferences(); |
| 10 | |
| 11 | const updatePreferences = (e: React.ChangeEvent<HTMLInputElement>) => { |
| 12 | let newIdent = Number(e.target.value); |
| 13 | if (newIdent < MIN_INDENT) newIdent = MIN_INDENT; |
| 14 | if (newIdent > MAX_INDENT) newIdent = MAX_INDENT; |
| 15 | e.target.value = newIdent.toString(); |
| 16 | setPreferences({ ...preferences, indent: newIdent }); |
| 17 | }; |
| 18 | |
| 19 | return ( |
| 20 | <div className="flex items-center -mt-0.5"> |
nothing calls this directly
no outgoing calls
no test coverage detected