|
|
@ -6,8 +6,8 @@ import { Tabs, Tab } from 'material-ui/Tabs';
|
|
|
|
import * as EteSync from './api/EteSync';
|
|
|
|
import * as EteSync from './api/EteSync';
|
|
|
|
|
|
|
|
|
|
|
|
import JournalEntries from './JournalEntries';
|
|
|
|
import JournalEntries from './JournalEntries';
|
|
|
|
import AddressBook from './AddressBook';
|
|
|
|
import JournalAddressBook from './JournalAddressBook';
|
|
|
|
import Calendar from './Calendar';
|
|
|
|
import JournalCalendar from './JournalCalendar';
|
|
|
|
import LoadingIndicator from './LoadingIndicator';
|
|
|
|
import LoadingIndicator from './LoadingIndicator';
|
|
|
|
|
|
|
|
|
|
|
|
import { store, StoreState, JournalsData, EntriesType, CredentialsData, fetchEntries } from './store';
|
|
|
|
import { store, StoreState, JournalsData, EntriesType, CredentialsData, fetchEntries } from './store';
|
|
|
@ -68,10 +68,10 @@ class Journal extends React.Component {
|
|
|
|
let itemsTitle: string;
|
|
|
|
let itemsTitle: string;
|
|
|
|
let itemsView: JSX.Element;
|
|
|
|
let itemsView: JSX.Element;
|
|
|
|
if (collectionInfo.type === 'CALENDAR') {
|
|
|
|
if (collectionInfo.type === 'CALENDAR') {
|
|
|
|
itemsView = <Calendar 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 = <AddressBook journal={journal} entries={syncEntries} />;
|
|
|
|
itemsView = <JournalAddressBook journal={journal} entries={syncEntries} />;
|
|
|
|
itemsTitle = 'Contacts';
|
|
|
|
itemsTitle = 'Contacts';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
itemsView = <div>Unsupported type</div>;
|
|
|
|
itemsView = <div>Unsupported type</div>;
|
|
|
|