1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

change side nav style when notification open (#6650)

This commit is contained in:
Michael An
2024-08-27 16:58:45 +08:00
committed by GitHub
parent 82f77eb146
commit 6de70045a5
5 changed files with 25 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ const propTypes = {
tabItemClick: PropTypes.func,
children: PropTypes.object,
style: PropTypes.object,
eventBus: PropTypes.object,
isSidePanelFolded: PropTypes.bool,
toggleFoldSideNav: PropTypes.func
};
@@ -21,7 +22,7 @@ const propTypes = {
class SidePanel extends React.Component {
render() {
const { children, isSidePanelFolded, style } = this.props;
const { children, isSidePanelFolded, style, eventBus } = this.props;
return (
<div
className={classnames('side-panel', { 'side-panel-folded': isSidePanelFolded, 'left-zero': !this.props.isSidePanelClosed })}
@@ -47,6 +48,7 @@ class SidePanel extends React.Component {
tabItemClick={this.props.tabItemClick}
currentTab={this.props.currentTab}
toggleFoldSideNav={this.props.toggleFoldSideNav}
eventBus={eventBus}
/>
}
</div>