@@ -19,6 +19,7 @@ import {
1919import DrawerIcon from '../general/NetPyNEIcons' ;
2020import useStyles from './useStyles' ;
2121import Tooltip from '../general/Tooltip' ;
22+ import { maximizeWidget } from '@metacell/geppetto-meta-client/common/layout/actions' ;
2223
2324const drawerOpenWidth = 'auto' ;
2425const drawerCloseWidth = 55 ;
@@ -94,7 +95,9 @@ const DrawerList = ({
9495 editMode,
9596 widgets,
9697 activateWidget,
98+ maximiseWidget,
9799 updateWidget,
100+ addWidget,
98101 classes,
99102} ) => {
100103 const [ expand , setExpand ] = useState ( false ) ;
@@ -110,10 +113,8 @@ const DrawerList = ({
110113 if ( ! widget ) {
111114 const widgetConf = getNewWidgetConf ( widgetId ) ;
112115 newWidget ( { path : widgetConf . id , ...widgetConf } ) ;
113- } else if ( widget . status === WidgetStatus . MINIMIZED ) {
114- updateBorderWidget ( widgetId ) ;
115116 } else {
116- activateWidget ( widgetId ) ;
117+ updateBorderWidget ( widgetId ) ;
117118 }
118119 }
119120
@@ -204,8 +205,8 @@ const DrawerList = ({
204205 setTimeout ( ( ) => window . dispatchEvent ( new Event ( 'resize' ) ) , 400 ) ;
205206 } }
206207 >
207- { expand ? < DrawerIcon style = { { padding : '12px !important' } } name = "arrow-left" fontSize = "inherit" />
208- : < DrawerIcon style = { { padding : '12px !important' } } name = "arrow-right" fontSize = "inherit" /> }
208+ { expand ? < DrawerIcon name = "arrow-left" fontSize = "inherit" />
209+ : < DrawerIcon name = "arrow-right" fontSize = "inherit" /> }
209210 </ IconButton >
210211 </ Tooltip >
211212 </ div >
0 commit comments