diff --git a/src/Journal.tsx b/src/Journal.tsx index d6e78f3..adb7d9d 100644 --- a/src/Journal.tsx +++ b/src/Journal.tsx @@ -5,6 +5,8 @@ import * as EteSync from './api/EteSync'; import Container from './Container'; +import SecondaryHeader from './SecondaryHeader'; + import JournalEntries from './JournalEntries'; import JournalAddressBook from './JournalAddressBook'; import JournalCalendar from './JournalCalendar'; @@ -12,8 +14,6 @@ import LoadingIndicator from './LoadingIndicator'; import { syncEntriesToItemMap, syncEntriesToCalendarItemMap } from './journal-processors'; -import { getPalette } from './App'; - import { JournalsData, EntriesType, CredentialsData } from './store'; interface PropsType { @@ -76,25 +76,9 @@ class Journal extends React.Component { itemsTitle = 'Items'; } - const style = { - header: { - backgroundColor: getPalette('primary1Color'), - color: getPalette('alternateTextColor'), - padding: 15, - textAlign: 'center', - }, - headerText: { - margin: 0, - }, - }; - return ( -
- -

{collectionInfo.displayName}

-
-
+ { + const style = { + header: { + backgroundColor: getPalette('primary1Color'), + color: getPalette('alternateTextColor'), + padding: 15, + textAlign: 'center', + }, + headerText: { + margin: 0, + }, + }; + + return ( +
+

{props.text}

+
+ ); +};