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