diff --git a/src/Journal/index.tsx b/src/Journals/Journal.tsx
similarity index 100%
rename from src/Journal/index.tsx
rename to src/Journals/Journal.tsx
diff --git a/src/Journals.tsx b/src/Journals/JournalsList.tsx
similarity index 88%
rename from src/Journals.tsx
rename to src/Journals/JournalsList.tsx
index 5e4b66b..6a58887 100644
--- a/src/Journals.tsx
+++ b/src/Journals/JournalsList.tsx
@@ -1,15 +1,15 @@
import * as React from 'react';
import { History } from 'history';
-import { List, ListItem } from './widgets/List';
+import { List, ListItem } from '../widgets/List';
-import * as EteSync from './api/EteSync';
+import * as EteSync from '../api/EteSync';
-import { routeResolver } from './App';
+import { routeResolver } from '../App';
-import { JournalsData, UserInfoData, CredentialsData } from './store';
+import { JournalsData, UserInfoData, CredentialsData } from '../store';
-class Journals extends React.PureComponent {
+class JournalsList extends React.PureComponent {
props: {
etesync: CredentialsData;
journals: JournalsData;
@@ -79,4 +79,4 @@ class Journals extends React.PureComponent {
}
}
-export default Journals;
+export default JournalsList;
diff --git a/src/Journals/index.tsx b/src/Journals/index.tsx
new file mode 100644
index 0000000..e441837
--- /dev/null
+++ b/src/Journals/index.tsx
@@ -0,0 +1,60 @@
+import * as React from 'react';
+import { Location, History } from 'history';
+import { Route, Switch } from 'react-router';
+
+import Journal from './Journal';
+import JournalsList from './JournalsList';
+
+import AppBarOverride from '../widgets/AppBarOverride';
+import { routeResolver } from '../App';
+
+import { JournalsData, UserInfoData, CredentialsData } from '../store';
+import { SyncInfo } from '../SyncGate';
+
+class Journals extends React.PureComponent {
+ props: {
+ etesync: CredentialsData;
+ journals: JournalsData;
+ userInfo: UserInfoData;
+ syncInfo: SyncInfo;
+ history: History;
+ location: Location;
+ };
+
+ constructor(props: any) {
+ super(props);
+ }
+
+ render() {
+ return (
+
+ (
+ <>
+
+
+ >
+ )}
+ />
+ (
+
+ )}
+ />
+
+ );
+ }
+}
+
+export default Journals;
diff --git a/src/Journal/journalView.tsx b/src/Journals/journalView.tsx
similarity index 100%
rename from src/Journal/journalView.tsx
rename to src/Journals/journalView.tsx
diff --git a/src/SyncGate.tsx b/src/SyncGate.tsx
index 3c3e2e2..a4b8ae9 100644
--- a/src/SyncGate.tsx
+++ b/src/SyncGate.tsx
@@ -13,7 +13,6 @@ import LoadingIndicator from './widgets/LoadingIndicator';
import PrettyError from './widgets/PrettyError';
import Journals from './Journals';
-import Journal from './Journal';
import Pim from './Pim';
import * as EteSync from './api/EteSync';
@@ -208,25 +207,14 @@ class SyncGate extends React.PureComponent {
/>
(
- <>
-
-
- >
- )}
- />
- (
- (
+
)}
/>