Skip to content

Commit 90633af

Browse files
committed
CCM-10548: review
1 parent 3e9fe89 commit 90633af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/hooks/use-text-input.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from 'react';
22

33
type InputValue = HTMLTextAreaElement | HTMLInputElement | HTMLSelectElement;
44

5-
export const useTextInput = <T extends InputValue, S = string>(
5+
export const useTextInput = <T extends InputValue, S extends string = string>(
66
initialState: string
77
): [S, React.ChangeEventHandler<T>] => {
88
const [value, setValue] = useState<S>(initialState as S);

0 commit comments

Comments
 (0)