1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +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

@@ -2,8 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import Prism from 'prismjs';
import Loading from '../../components/loading';
import Account from '../../components/account';
import Notification from '../../components/notification';
import CommonToolbar from '../../components/toolbar/common-toolbar';
import '../../css/initial-style.css';
require('@seafile/seafile-editor/src/lib/code-hight-package');
@@ -19,14 +18,15 @@ class MainPanel extends React.Component {
Prism.highlightAll();
}
onSelectedClick = () => {
//todos;
}
render() {
return (
<div className="main-panel viewer">
<div className="main-panel-north">
<div className="common-toolbar">
<Notification />
<Account />
</div>
<CommonToolbar onSelectedClick={this.onSelectedClick} />
</div>
<div className="main-panel-center history-viewer-contanier">
<div className="content-viewer">