11import PropTypes from 'prop-types' ;
22import React from 'react' ;
3- import { Drawer , List , ListItem , withStyles } from '@material-ui/core' ;
3+ import { List , withStyles } from '@material-ui/core' ;
44import classNames from 'classnames' ;
5- import BurgerMenuButton from './BurgerMenuButton' ;
65import { DisplayActions } from '@jahia/react-material' ;
76import LeftMenuItem from './LeftMenuItem' ;
87import { compose } from 'recompose' ;
@@ -57,7 +56,7 @@ const styles = theme => ({
5756 }
5857} ) ;
5958
60- export const LeftNavigation = ( { context, classes, actionsTarget, secondaryActionsTarget, drawer, burgerIconTitle } ) => {
59+ export const LeftNavigation = ( { context, classes, actionsTarget, secondaryActionsTarget, drawer} ) => {
6160 let actionContext = {
6261 ...context ,
6362 drawer
@@ -70,9 +69,6 @@ export const LeftNavigation = ({context, classes, actionsTarget, secondaryAction
7069 } ) }
7170 >
7271 < List className = { classes . list } component = "nav" >
73- < ListItem button className = { classes . menuBurger } >
74- < BurgerMenuButton title = { burgerIconTitle } isDrawerOpen = { drawer . drawerOpen } />
75- </ ListItem >
7672 < DisplayActions target = { actionsTarget }
7773 context = { actionContext }
7874 render = { ( { context} ) => (
@@ -89,18 +85,6 @@ export const LeftNavigation = ({context, classes, actionsTarget, secondaryAction
8985 ) }
9086 />
9187 </ List >
92- < Drawer
93- variant = "persistent"
94- classes = { {
95- paper : classNames ( classes . drawerPaper , ! drawer . drawerOpen && classes . drawerPaperClose )
96- } }
97- open = { drawer . drawerOpen }
98- >
99- < div className = { classes . drawerTree } >
100- { drawer . drawerContent &&
101- drawer . drawerContent . content }
102- </ div >
103- </ Drawer >
10488 </ div >
10589 ) ;
10690} ;
@@ -110,7 +94,6 @@ LeftNavigation.propTypes = {
11094 secondaryActionsTarget : PropTypes . string . isRequired ,
11195 context : PropTypes . object . isRequired ,
11296 drawer : PropTypes . object . isRequired ,
113- burgerIconTitle : PropTypes . string . isRequired ,
11497 classes : PropTypes . object . isRequired
11598} ;
11699
0 commit comments