File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ const Page = () => {
38
38
const [ exam , setExam ] = useState ( "" ) ;
39
39
const [ year , setYear ] = useState ( "" ) ;
40
40
const [ files , setFiles ] = useState < File [ ] > ( [ ] ) ;
41
+ const [ inputValue , setInputValue ] = useState ( '' )
42
+
41
43
const [ isSubjectCommandOpen , setIsSubjectCommandOpen ] = useState ( false ) ;
42
44
// const toggleOpenCamera = () => {
43
45
// setOpenCamera((prev) => !prev);
@@ -92,7 +94,7 @@ const Page = () => {
92
94
) ;
93
95
return response . data ;
94
96
} catch ( error ) {
95
- handleAPIError ( error ) ;
97
+ throw handleAPIError ( error ) ;
96
98
}
97
99
} ) ( ) ,
98
100
{
@@ -193,7 +195,10 @@ const Page = () => {
193
195
)}
194
196
</div> */ }
195
197
< Command className = "rounded-lg border shadow-md md:min-w-[450px]" >
196
- < CommandInput placeholder = "Type a subject or search..." />
198
+ < CommandInput
199
+ value = { inputValue }
200
+ onChangeCapture = { ( e ) => setInputValue ( ( e . target as HTMLInputElement ) . value ) }
201
+ placeholder = "Type a subject or search..." />
197
202
< CommandList className = "h-[100px]" >
198
203
< CommandEmpty > No results found.</ CommandEmpty >
199
204
You can’t perform that action at this time.
0 commit comments