Use Loader on the entry page. Closes #102
This commit is contained in:
parent
3b18fb4f87
commit
863d90c8ee
@ -14,6 +14,7 @@ import { addMedia, removeMedia } from '../actions/media';
|
|||||||
import { selectEntry, getMedia } from '../reducers';
|
import { selectEntry, getMedia } from '../reducers';
|
||||||
import EntryEditor from '../components/EntryEditor/EntryEditor';
|
import EntryEditor from '../components/EntryEditor/EntryEditor';
|
||||||
import entryPageHOC from './editorialWorkflow/EntryPageHOC';
|
import entryPageHOC from './editorialWorkflow/EntryPageHOC';
|
||||||
|
import { Loader } from '../components/UI';
|
||||||
|
|
||||||
class EntryPage extends React.Component {
|
class EntryPage extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
@ -82,7 +83,7 @@ class EntryPage extends React.Component {
|
|||||||
if (entryDraft == null
|
if (entryDraft == null
|
||||||
|| entryDraft.get('entry') === undefined
|
|| entryDraft.get('entry') === undefined
|
||||||
|| (entry && entry.get('isFetching'))) {
|
|| (entry && entry.get('isFetching'))) {
|
||||||
return <div>Loading...</div>;
|
return <Loader active>Loading entry...</Loader>;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<EntryEditor
|
<EntryEditor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user