summaryrefslogtreecommitdiff
path: root/src/components/TextInput.tsx
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2024-03-14 19:29:29 -0400
committerSam Nystrom <sam@samnystrom.dev>2024-03-14 19:29:29 -0400
commitc63738e17df4d5bfff2049a6d1c445c609c2189e (patch)
tree5e64cdbcd49a3d6f7348cff8ad80a8eafb6dc83c /src/components/TextInput.tsx
parent71abdb2ee3f5bdb1e029c9f4266f4b797fa960f9 (diff)
fix: fix lots of type errors
Diffstat (limited to 'src/components/TextInput.tsx')
-rw-r--r--src/components/TextInput.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/TextInput.tsx b/src/components/TextInput.tsx
index 026b062..c74828d 100644
--- a/src/components/TextInput.tsx
+++ b/src/components/TextInput.tsx
@@ -4,12 +4,12 @@ import './TextInput.css';
export interface TextInputProps {
signal?: Signal<string>;
- props: Record<string, any>;
+ [prop: string]: any;
}
const TextInput = ({ signal, ...props }: TextInputProps) => {
const onInputSignal = useCallback((event: InputEvent) => {
- signal.value = event.target.value;
+ if (signal) signal.value = (event.target as HTMLInputElement).value;
}, [signal]);
return (