File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @beeinventor/dasiot-react-component-lib" ,
3
- "version" : " 1.2.3 " ,
3
+ "version" : " 1.2.4 " ,
4
4
"module" : " lib/index.js" ,
5
5
"types" : " lib/index.d.ts" ,
6
6
"files" : [
Original file line number Diff line number Diff line change 1
1
import { Dialog , DialogContent } from '@mui/material' ;
2
2
import { Meta , Story } from '@storybook/react' ;
3
- import React , { useEffect , useState } from 'react' ;
3
+ import React , { useState } from 'react' ;
4
4
import Button from '../Button' ;
5
5
import Dropdown from './Dropdown' ;
6
6
import { DropDownItem , DropDownProps } from './Dropdown.type' ;
@@ -155,10 +155,6 @@ Reset.parameters = {
155
155
export const Version2 : Story < DropDownProps > = ( args ) => {
156
156
const [ selectedId , setSelectedId ] = useState < string | undefined > ( ) ;
157
157
158
- useEffect ( ( ) => {
159
- console . log ( selectedId ) ;
160
- } , [ selectedId ] ) ;
161
-
162
158
return (
163
159
< div >
164
160
< DropdownV2
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ const DropdownV2: React.VFC<DropDownProps> = (props) => {
109
109
110
110
const handleOnClick = ( item : DropDownItem ) => {
111
111
setIsOpen ( false ) ;
112
- setSelectedItem ( item ) ;
113
112
onSelect ( item . value , item ) ;
114
113
} ;
115
114
You can’t perform that action at this time.
0 commit comments