import React from 'react'; import { observer } from 'mobx-react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import store 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'; @observer(['user']) class Dashboard extends React.Component { static propTypes = { user: React.PropTypes.object.isRequired, } componentDidMount = () => { store.fetchCollections(this.props.user.team.id); } render() { return ( { store.isFetching ? ( ) : ( store.collections && store.collections.map((collection) => { return (); }) ) } ); } } export default Dashboard;