diff --git a/src/components/SiderMenu/SiderMenu.js b/src/components/SiderMenu/SiderMenu.js index 785a97cad165decd513a0be8d9a30d0656adaa1b..e457f2f5b6f12524b26c112302e2e6c0cbe91f67 100644 --- a/src/components/SiderMenu/SiderMenu.js +++ b/src/components/SiderMenu/SiderMenu.js @@ -87,7 +87,7 @@ export default class SiderMenu extends PureComponent { }; render() { - const { logo, collapsed, fixSiderbar, theme } = this.props; + const { logo, collapsed, onCollapse, fixSiderbar, theme } = this.props; const { openKeys } = this.state; const defaultProps = collapsed ? {} : { openKeys }; @@ -95,12 +95,14 @@ export default class SiderMenu extends PureComponent { [styles.fixSiderbar]: fixSiderbar, [styles.light]: theme === 'light', }); + return (