This commit is contained in:
Jori Lallo
2016-10-09 15:36:18 -07:00
parent 9b1983762c
commit ddafb4e5ae
3 changed files with 11 additions and 21 deletions

View File

@@ -1,6 +1,5 @@
import React from 'react';
import { observer } from 'mobx-react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import store from './DashboardStore';
@@ -26,21 +25,13 @@ class Dashboard extends React.Component {
<Layout>
<CenteredContent>
<Flex column auto>
<ReactCSSTransitionGroup
transitionName="fadeIn"
transitionAppear
transitionAppearTimeout={ 0 }
transitionEnterTimeout={ 0 }
transitionLeaveTimeout={ 0 }
>
{ store.isFetching ? (
<AtlasPreviewLoading />
) : (
store.collections && store.collections.map((collection) => {
return (<AtlasPreview key={ collection.id } data={ collection } />);
})
) }
</ReactCSSTransitionGroup>
{ store.isFetching ? (
<AtlasPreviewLoading />
) : (
store.collections && store.collections.map((collection) => {
return (<AtlasPreview key={ collection.id } data={ collection } />);
})
) }
</Flex>
</CenteredContent>
</Layout>

View File

@@ -1,4 +1,3 @@
import _ from 'lodash';
import { action, toJS } from 'mobx';
const CACHE_STORE = 'CACHE_STORE';