Skip to content

Commit

Permalink
remove one Box
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 29, 2021
1 parent 6c921cf commit da6334c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions docs/src/pages/components/menus/SimpleListMenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import Box from '@material-ui/core/Box';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
Expand Down Expand Up @@ -31,8 +30,12 @@ export default function SimpleListMenu() {
};

return (
<Box sx={{ bgcolor: 'background.paper' }}>
<List component="nav" aria-label="Device settings">
<div>
<List
component="nav"
aria-label="Device settings"
sx={{ bgcolor: 'background.paper' }}
>
<ListItem
button
id="lock-button"
Expand Down Expand Up @@ -69,6 +72,6 @@ export default function SimpleListMenu() {
</MenuItem>
))}
</Menu>
</Box>
</div>
);
}
11 changes: 7 additions & 4 deletions docs/src/pages/components/menus/SimpleListMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import Box from '@material-ui/core/Box';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
Expand Down Expand Up @@ -34,8 +33,12 @@ export default function SimpleListMenu() {
};

return (
<Box sx={{ bgcolor: 'background.paper' }}>
<List component="nav" aria-label="Device settings">
<div>
<List
component="nav"
aria-label="Device settings"
sx={{ bgcolor: 'background.paper' }}
>
<ListItem
button
id="lock-button"
Expand Down Expand Up @@ -72,6 +75,6 @@ export default function SimpleListMenu() {
</MenuItem>
))}
</Menu>
</Box>
</div>
);
}

0 comments on commit da6334c

Please sign in to comment.