Home Reference Source

application/components/dashboard.js

import React from 'react';
import Paper from 'material-ui/Paper';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import Markdown from 'react-remarkable';
import Config from '../config';
import CurrentUser from './../current-user';

import DashboardOne from './dashboards/dashboard-one';

class Dashboard extends React.Component {
    constructor(props) {
        super(props);
    }


    render() {
        let dashboard = '';
        switch (Config.get('landing')) {
            case 'dashboardone':
            default:
                dashboard = <DashboardOne {...this.props} />;
                break;
        }

        return (
            <div className="dashboard">
                {dashboard}
            </div>
        );
    }
}

export default Dashboard;