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

Style bug repair (#2394)

* optimized css code

* repair search module

* repair response bug

* repair notificition bug

* repair file-history bug

* repair search info bug

* optimized code
This commit is contained in:
shanshuirenjia
2018-09-25 09:13:06 +08:00
committed by Daniel Pan
parent 490a15deed
commit 5ce1b15fb2
17 changed files with 85 additions and 153 deletions

View File

@@ -21,18 +21,31 @@ class App extends Component {
super(props);
this.state = {
isOpen: false,
isSidePanelClosed: false,
};
}
onCloseSidePanel = () => {
this.setState({
isSidePanelClosed: !this.state.isSidePanelClosed
});
}
onShowSidePanel = () => {
this.setState({
isSidePanelClosed: !this.state.isSidePanelClosed
});
}
render() {
let href = window.location.href.split('/');
let currentTab = href[href.length - 2];
return (
<div id="main">
<SidePanel isOpen={this.state.isOpen} toggleClose={this.isOpen} currentTab={currentTab} />
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} />
<MainPanel path='/'>
<MainPanel path='/' onShowSidePanel={this.onShowSidePanel}>
<Router>
<FilesActivities path='dashboard' />
<DraftsView path='drafts' />