diff options
Diffstat (limited to 'src/hooks/useTextInput.ts')
| -rw-r--r-- | src/hooks/useTextInput.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hooks/useTextInput.ts b/src/hooks/useTextInput.ts index 8098b42..35256cd 100644 --- a/src/hooks/useTextInput.ts +++ b/src/hooks/useTextInput.ts @@ -4,8 +4,8 @@ import * as React from 'react'; const { useCallback, useState, useMemo } = React; -export function useTextInut( - x: PrimitiveAtom<string> +export function useTextInput( + x: PrimitiveAtom<string>, ): [(e: React.ChangeEvent<HTMLInputElement>) => void, string] { const [, setTextGlobal] = useAtom(x); const [text, setText] = useState(''); @@ -15,7 +15,7 @@ export function useTextInut( setText(e.target.value); setTextDebounced(e.target.value); }, - [setTextDebounced] + [setTextDebounced], ); return [onChange, text]; } |
