From 529d96d026fff5635d2e81a8125eec9ac47a7995 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 7 Dec 2017 00:26:33 +0000 Subject: [PATCH] JournalEntries: use the loading indicator. --- src/JournalView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/JournalView.tsx b/src/JournalView.tsx index 76f994d..9e0b656 100644 --- a/src/JournalView.tsx +++ b/src/JournalView.tsx @@ -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 (
Loading
); + return (); } const journal = this.props.journals.find((x) => (x.uid === journalUid));