Fakultas Ilmu Komputer UI

Dashboard.jsx 708 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 = {
8
9
10
    user: React.PropTypes.object.isRequired,
    route: React.PropTypes.object.isRequired,
    params: React.PropTypes.object.isRequired,
11
12
13
14
15
    children: React.PropTypes.oneOfType([
      React.PropTypes.arrayOf(React.PropTypes.node),
      React.PropTypes.node,
    ]).isRequired,
  };
Zamil Majdy's avatar
Zamil Majdy committed
16

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

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