Skip to content

Commit

Permalink
revert 2761a3b
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 12, 2018
1 parent 113fe53 commit 8331a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SiderMenu/SiderMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,22 @@ 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 };

const siderClassName = classNames(styles.sider, {
[styles.fixSiderbar]: fixSiderbar,
[styles.light]: theme === 'light',
});

return (
<Sider
trigger={null}
collapsible
collapsed={collapsed}
breakpoint="lg"
onCollapse={onCollapse}
width={256}
theme={theme}
className={siderClassName}
Expand Down

0 comments on commit 8331a92

Please sign in to comment.