File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/app/components/Actions Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import Select from 'react-select';
2
2
import React , { useEffect , useState } from 'react' ;
3
3
4
4
const DropDown = ( ) : JSX . Element => {
5
- const [ hook , setHook ] = useState ( 'useState' ) ;
5
+ // const [hook, setHook] = useState('useState');
6
6
7
- const handleChange = ( selectedHook : { hooks :string } ) => {
8
- setHook ( selectedHook ) ;
9
- }
7
+ // const handleChange = (options : {value :string}) => {
8
+ // setHook(options.value );
9
+ // }
10
10
11
11
const options = [
12
12
{ value : 'useState' , label : 'useState' } ,
@@ -15,11 +15,15 @@ const options = [
15
15
] ;
16
16
17
17
return (
18
- < Select
18
+ < div >
19
+ < Select
19
20
placeholder = 'Select Hook'
20
- onChange = { handleChange }
21
+ // onChange={handleChange}
21
22
options = { options }
22
23
/>
24
+ { /* <p>Selected Hook: {hook}</p> */ }
25
+ </ div >
26
+
23
27
)
24
28
}
25
29
export default DropDown ;
You can’t perform that action at this time.
0 commit comments