From 8331a923a9519e1db451e4cb200be084699d9ee2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 12 Sep 2018 10:34:03 +0800 Subject: [PATCH] revert 2761a3b --- src/components/SiderMenu/SiderMenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/SiderMenu/SiderMenu.js b/src/components/SiderMenu/SiderMenu.js index 785a97ca..e457f2f5 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 (