diff --git a/src/components/SiderMenu/index.js b/src/components/SiderMenu/index.js index 7bb4360d97abfc867e19d4871337098c71421934..bc803db411d68eca003942ccd423a7c8d486d348 100644 --- a/src/components/SiderMenu/index.js +++ b/src/components/SiderMenu/index.js @@ -19,14 +19,12 @@ const getFlatMenuKeys = menuData => { }; const SiderMenuWrapper = props => { - const { isMobile, menuData, collapsed } = props; + const { isMobile, menuData, collapsed, onCollapse } = props; return isMobile ? ( { - props.onCollapse(true); - }} + onClose={() => onCollapse(true)} style={{ padding: 0, height: '100vh',