File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ import {
18
18
} from "@/types/find-match" ;
19
19
import { useForm } from "react-hook-form" ;
20
20
21
+ interface FindMatchFormOutput {
22
+ questionDifficulty : string ;
23
+ preferredLanguages : string ;
24
+ }
25
+
21
26
function capitalizeWord ( word : string ) {
22
27
if ( ! word ) return word ;
23
28
return word [ 0 ] . toUpperCase ( ) + word . substr ( 1 ) . toLowerCase ( ) ;
@@ -62,7 +67,7 @@ const FindPeer = () => {
62
67
} )
63
68
. sort ( ( a , b ) => a . label . localeCompare ( b . label ) ) ;
64
69
65
- const onSubmit = ( data ) => {
70
+ const onSubmit = ( data : FindMatchFormOutput ) => {
66
71
console . log ( data ) ;
67
72
} ;
68
73
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ export const MultiSelect = React.forwardRef<
133
133
animation = 0 ,
134
134
maxCount = 3 ,
135
135
modalPopover = false ,
136
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
136
137
asChild = false ,
137
138
className,
138
139
...props
You can’t perform that action at this time.
0 commit comments