From cf19e003d1a2c9020f8f997707ecc1f8c14b517b Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 7 Dec 2017 14:54:58 +0000 Subject: [PATCH] Rename calendar and address book to have the jorunal prefix. The reason for that is that they are tied to a journal. --- src/Journal.tsx | 8 ++++---- src/{AddressBook.tsx => JournalAddressBook.tsx} | 4 ++-- src/{Calendar.tsx => JournalCalendar.tsx} | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/{AddressBook.tsx => JournalAddressBook.tsx} (96%) rename src/{Calendar.tsx => JournalCalendar.tsx} (96%) diff --git a/src/Journal.tsx b/src/Journal.tsx index b35060d..cef401b 100644 --- a/src/Journal.tsx +++ b/src/Journal.tsx @@ -6,8 +6,8 @@ import { Tabs, Tab } from 'material-ui/Tabs'; import * as EteSync from './api/EteSync'; import JournalEntries from './JournalEntries'; -import AddressBook from './AddressBook'; -import Calendar from './Calendar'; +import JournalAddressBook from './JournalAddressBook'; +import JournalCalendar from './JournalCalendar'; import LoadingIndicator from './LoadingIndicator'; import { store, StoreState, JournalsData, EntriesType, CredentialsData, fetchEntries } from './store'; @@ -68,10 +68,10 @@ class Journal extends React.Component { let itemsTitle: string; let itemsView: JSX.Element; if (collectionInfo.type === 'CALENDAR') { - itemsView = ; + itemsView = ; itemsTitle = 'Events'; } else if (collectionInfo.type === 'ADDRESS_BOOK') { - itemsView = ; + itemsView = ; itemsTitle = 'Contacts'; } else { itemsView =
Unsupported type
; diff --git a/src/AddressBook.tsx b/src/JournalAddressBook.tsx similarity index 96% rename from src/AddressBook.tsx rename to src/JournalAddressBook.tsx index a16ff1f..9e2587b 100644 --- a/src/AddressBook.tsx +++ b/src/JournalAddressBook.tsx @@ -10,7 +10,7 @@ import * as EteSync from './api/EteSync'; import { routeResolver } from './App'; import Contact from './Contact'; -class AddressBook extends React.Component { +class JournalAddressBook extends React.Component { static defaultProps = { prevUid: null, }; @@ -95,4 +95,4 @@ class AddressBook extends React.Component { } } -export default AddressBook; +export default JournalAddressBook; diff --git a/src/Calendar.tsx b/src/JournalCalendar.tsx similarity index 96% rename from src/Calendar.tsx rename to src/JournalCalendar.tsx index 22711a2..caae320 100644 --- a/src/Calendar.tsx +++ b/src/JournalCalendar.tsx @@ -33,7 +33,7 @@ class EventWrapper { } } -class Calendar extends React.Component { +class JournalCalendar extends React.Component { static defaultProps = { prevUid: null, }; @@ -101,4 +101,4 @@ class Calendar extends React.Component { } } -export default Calendar; +export default JournalCalendar;