JournalEntries: use the loading indicator.

master
Tom Hacohen 7 years ago
parent 95724c08d8
commit 529d96d026

@ -8,6 +8,7 @@ import * as EteSync from './api/EteSync';
import JournalViewEntries from './JournalViewEntries';
import JournalViewAddressBook from './JournalViewAddressBook';
import JournalViewCalendar from './JournalViewCalendar';
import LoadingIndicator from './LoadingIndicator';
import { store, StoreState, JournalsData, EntriesType, CredentialsData, fetchEntries } from './store';
@ -43,7 +44,7 @@ class JournalView extends React.Component {
const entries = this.props.entries[journalUid];
if ((!entries) || (entries.value === null)) {
return (<div>Loading</div>);
return (<LoadingIndicator />);
}
const journal = this.props.journals.find((x) => (x.uid === journalUid));

Loading…
Cancel
Save