Commit 9e626603 authored by afc163's avatar afc163

code style improve

parent d9222a8a
...@@ -19,14 +19,12 @@ const getFlatMenuKeys = menuData => { ...@@ -19,14 +19,12 @@ const getFlatMenuKeys = menuData => {
}; };
const SiderMenuWrapper = props => { const SiderMenuWrapper = props => {
const { isMobile, menuData, collapsed } = props; const { isMobile, menuData, collapsed, onCollapse } = props;
return isMobile ? ( return isMobile ? (
<Drawer <Drawer
visible={!collapsed} visible={!collapsed}
placement="left" placement="left"
onClose={() => { onClose={() => onCollapse(true)}
props.onCollapse(true);
}}
style={{ style={{
padding: 0, padding: 0,
height: '100vh', height: '100vh',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment