File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import styles from './styles';
11
11
12
12
import AppBar from '../AppBar' ;
13
13
import Footer from '../Footer' ;
14
+ import LayoutActions from './LayoutActions' ;
14
15
15
16
// FIXME remove once material-ui drawer style is fixed
16
17
const isDocked = type => type === 'permanent' || type === 'persistent' ;
@@ -222,7 +223,16 @@ class Layout extends React.PureComponent {
222
223
{ rightDrawerContentWithProps }
223
224
</ Drawer >
224
225
) : null }
225
- < main className = { mainClassnames } > { children } </ main >
226
+ < LayoutActions . Provider
227
+ value = { {
228
+ toggleLeftDrawer : this . toggleLeftDrawer ,
229
+ toggleRightDrawer : this . toggleRightDrawer ,
230
+ handleLeftDrawerClose : this . handleLeftDrawerClose ,
231
+ handleRightDrawerClose : this . handleRightDrawerClose ,
232
+ } }
233
+ >
234
+ < main className = { mainClassnames } > { children } </ main >
235
+ </ LayoutActions . Provider >
226
236
{ footerContent ? (
227
237
< Footer { ...footerProps } > { footerContent } </ Footer >
228
238
) : null }
You can’t perform that action at this time.
0 commit comments