|
|
|
@ -10,6 +10,8 @@ import JournalAddressBook from './JournalAddressBook';
|
|
|
|
|
import JournalCalendar from './JournalCalendar';
|
|
|
|
|
import LoadingIndicator from './LoadingIndicator';
|
|
|
|
|
|
|
|
|
|
import { syncEntriesToItemMap } from './journal-processors';
|
|
|
|
|
|
|
|
|
|
import { store, StoreState, JournalsData, EntriesType, CredentialsData, fetchEntries } from './store';
|
|
|
|
|
|
|
|
|
|
interface PropsType {
|
|
|
|
@ -71,7 +73,7 @@ class Journal extends React.Component {
|
|
|
|
|
itemsView = <JournalCalendar journal={journal} entries={syncEntries} />;
|
|
|
|
|
itemsTitle = 'Events';
|
|
|
|
|
} else if (collectionInfo.type === 'ADDRESS_BOOK') {
|
|
|
|
|
itemsView = <JournalAddressBook journal={journal} entries={syncEntries} />;
|
|
|
|
|
itemsView = <JournalAddressBook journal={journal} entries={syncEntriesToItemMap(syncEntries)} />;
|
|
|
|
|
itemsTitle = 'Contacts';
|
|
|
|
|
} else {
|
|
|
|
|
itemsView = <div>Unsupported type</div>;
|
|
|
|
|