import React from 'react'; import { observer } from 'mobx-react'; import { withRouter } from 'react-router'; import DashboardStore from './DashboardStore'; import { Flex } from 'reflexbox'; import Layout from 'components/Layout'; import AtlasPreview from 'components/AtlasPreview'; import AtlasPreviewLoading from 'components/AtlasPreviewLoading'; import CenteredContent from 'components/CenteredContent'; @withRouter @observer(['user']) class Dashboard extends React.Component { static propTypes = { user: React.PropTypes.object.isRequired, router: React.PropTypes.object.isRequired, } constructor(props) { super(props); this.store = new DashboardStore({ team: props.user.team, router: props.router, }); } render() { return ( { this.store.isFetching ? ( ) : ( this.store.collections && this.store.collections.map((collection) => { return (); }) ) } ); } } export default Dashboard;