Use Loader on the entry page. Closes #102

This commit is contained in:
Andrey Okonetchnikov 2016-10-14 13:42:58 +02:00
parent 3b18fb4f87
commit 863d90c8ee

View File

@ -14,6 +14,7 @@ import { addMedia, removeMedia } from '../actions/media';
import { selectEntry, getMedia } from '../reducers';
import EntryEditor from '../components/EntryEditor/EntryEditor';
import entryPageHOC from './editorialWorkflow/EntryPageHOC';
import { Loader } from '../components/UI';
class EntryPage extends React.Component {
static propTypes = {
@ -82,7 +83,7 @@ class EntryPage extends React.Component {
if (entryDraft == null
|| entryDraft.get('entry') === undefined
|| (entry && entry.get('isFetching'))) {
return <div>Loading...</div>;
return <Loader active>Loading entry...</Loader>;
}
return (
<EntryEditor