mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
Merge pull request #2624 from haiwen/change-index-page
change index page
This commit is contained in:
@@ -51,7 +51,7 @@ class App extends Component {
|
||||
draftCounts: 0,
|
||||
draftList:[],
|
||||
isLoadingDraft: true,
|
||||
currentTab: 'dashboard',
|
||||
currentTab: '/',
|
||||
};
|
||||
this.currentTab = ''; //just for refresh brower
|
||||
}
|
||||
@@ -114,9 +114,9 @@ class App extends Component {
|
||||
return (
|
||||
<div id="main">
|
||||
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} draftCounts={this.state.draftCounts} />
|
||||
|
||||
<MainPanel>
|
||||
<Router>
|
||||
<MyLibraries path={ siteRoot } onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
|
||||
<FilesActivitiesWrapper path={siteRoot + 'dashboard'} onShowSidePanel={this.onShowSidePanel} onSearchedClick={this.onSearchedClick} />
|
||||
<DraftsViewWrapper path={siteRoot + 'drafts'}
|
||||
currentTab={currentTab}
|
||||
|
Reference in New Issue
Block a user