mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 07:27:56 +00:00
Repair draft activities (#2403)
* repair drafts and activities * repair bug * repair bug * repair bug
This commit is contained in:
parent
82dcb711a1
commit
aa9798ef08
@ -1,6 +1,7 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { Router } from '@reach/router'
|
import { Router } from '@reach/router'
|
||||||
|
import { siteRoot } from './components/constants';
|
||||||
import SidePanel from './components/side-panel';
|
import SidePanel from './components/side-panel';
|
||||||
import MainPanel from './components/main-panel';
|
import MainPanel from './components/main-panel';
|
||||||
import DraftsView from './pages/drafts/drafts-view';
|
import DraftsView from './pages/drafts/drafts-view';
|
||||||
@ -40,15 +41,15 @@ class App extends Component {
|
|||||||
render() {
|
render() {
|
||||||
let href = window.location.href.split('/');
|
let href = window.location.href.split('/');
|
||||||
let currentTab = href[href.length - 2];
|
let currentTab = href[href.length - 2];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} />
|
<SidePanel isSidePanelClosed={this.state.isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} />
|
||||||
|
|
||||||
<MainPanel path='/' onShowSidePanel={this.onShowSidePanel}>
|
<MainPanel onShowSidePanel={this.onShowSidePanel}>
|
||||||
<Router>
|
<Router>
|
||||||
<FilesActivities path='dashboard' />
|
<FilesActivities path={siteRoot + 'dashboard'} />
|
||||||
<DraftsView path='drafts' />
|
<DraftsView path={siteRoot + 'drafts'} />
|
||||||
</Router>
|
</Router>
|
||||||
</MainPanel>
|
</MainPanel>
|
||||||
</div>
|
</div>
|
||||||
|
@ -111,4 +111,5 @@
|
|||||||
|
|
||||||
[role=group] {
|
[role=group] {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user