Fakultas Ilmu Komputer UI

Dashboard.jsx 802 Bytes
Newer Older
1
2
import React from 'react';
import TopMenu from './components/TopMenu';
sirinbaisa's avatar
sirinbaisa committed
3
import Server from './lib/Server';
4
import Footer from './components/Footer';
Zamil Majdy's avatar
Zamil Majdy committed
5

6
7
export default class Dashboard extends React.Component {
  static propTypes = {
sirinbaisa's avatar
sirinbaisa committed
8
9
10
    user: React.PropTypes.object.isRequired,
    route: React.PropTypes.object.isRequired,
    params: React.PropTypes.object.isRequired,
11
12
13
14
    children: React.PropTypes.oneOfType([
      React.PropTypes.arrayOf(React.PropTypes.node),
      React.PropTypes.node,
    ]).isRequired,
15
    user: React.PropTypes.object.isRequired,
16
  };
Zamil Majdy's avatar
Zamil Majdy committed
17

sirinbaisa's avatar
sirinbaisa committed
18
19
20
21
22
  constructor(props) {
    super(props);
    /* istanbul ignore next */
  }

23
24
  render = () => (
    <div>
25
      <TopMenu user={this.props.user} />
26
      <div className="content"> {this.props.children} </div>
27
      <Footer />
28
29
    </div>
  )
Zamil Majdy's avatar
Zamil Majdy committed
30
}