1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

Draft dashboard optimized (#2384)

* create a common toolbar component

* optimized code

* combine side-panel

* add change state
This commit is contained in:
shanshuirenjia
2018-09-19 21:19:11 -05:00
committed by Daniel Pan
parent 7a17e908b0
commit ba583d6efd
22 changed files with 278 additions and 211 deletions

View File

@@ -0,0 +1,30 @@
import React from 'react';
import Logo from './logo';
import MainSideNav from './main-side-nav';
import SideNavFooter from './side-nav-footer';
class SidePanel extends React.Component {
onCloseSidePanel = () => {
//todos;
}
render() {
return (
<div className="side-panel">
<div className="side-panel-north">
<Logo onCloseSidePanel={this.onCloseSidePanel}/>
</div>
<div className="side-panel-center">
<MainSideNav currentTab={this.props.currentTab}/>
</div>
<div className="side-panel-footer">
<SideNavFooter />
</div>
</div>
);
}
}
export default SidePanel;