Skip to content

Commit 9b253f6

Browse files
committed
now the implementation is more clear
1 parent 8c51e49 commit 9b253f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Layout/Layout.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class Layout extends React.PureComponent {
166166
<Drawer
167167
open={leftDrawerOpen}
168168
onRequestClose={this.handleLeftDrawerClose}
169-
type={!smallScreen && leftDrawerType}
169+
type={!smallScreen ? leftDrawerType : 'temporary'}
170170
classes={{ paper: leftDrawerPaperClassnames }}
171171
{...leftDrawerProps}
172172
>
@@ -181,7 +181,7 @@ class Layout extends React.PureComponent {
181181
anchor="right"
182182
open={rightDrawerOpen}
183183
onRequestClose={this.handleRightDrawerClose}
184-
type={!smallScreen && rightDrawerType}
184+
type={!smallScreen ? rightDrawerType : 'temporary'}
185185
classes={{ paper: rightDrawerPaperClassnames }}
186186
{...rightDrawerProps}
187187
>

0 commit comments

Comments
 (0)