Skip to content

Commit 22e1fbc

Browse files
researching drop down functionality
1 parent 769cfcc commit 22e1fbc

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/app/components/Actions/DropDown.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import Select from 'react-select';
22
import React, { useEffect, useState } from 'react';
33

44
const DropDown = (): JSX.Element => {
5-
const [hook, setHook] = useState('useState');
5+
// const [hook, setHook] = useState('useState');
66

7-
const handleChange = (selectedHook: {hooks:string}) => {
8-
setHook(selectedHook);
9-
}
7+
// const handleChange = (options: {value:string}) => {
8+
// setHook(options.value);
9+
// }
1010

1111
const options = [
1212
{value: 'useState', label: 'useState'},
@@ -15,11 +15,15 @@ const options = [
1515
];
1616

1717
return (
18-
<Select
18+
<div>
19+
<Select
1920
placeholder = 'Select Hook'
20-
onChange={handleChange}
21+
// onChange={handleChange}
2122
options = {options}
2223
/>
24+
{/* <p>Selected Hook: {hook}</p> */}
25+
</div>
26+
2327
)
2428
}
2529
export default DropDown;

0 commit comments

Comments
 (0)