Commit 9e626603 authored by afc163's avatar afc163

code style improve

parent d9222a8a
......@@ -19,14 +19,12 @@ const getFlatMenuKeys = menuData => {
};
const SiderMenuWrapper = props => {
const { isMobile, menuData, collapsed } = props;
const { isMobile, menuData, collapsed, onCollapse } = props;
return isMobile ? (
<Drawer
visible={!collapsed}
placement="left"
onClose={() => {
props.onCollapse(true);
}}
onClose={() => onCollapse(true)}
style={{
padding: 0,
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