From df4ea83208aa51788f82ea7c7fd18c16099b80f9 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 4 Dec 2017 22:16:15 +0000 Subject: [PATCH] Don't change history when switching tabs. --- src/JournalView.tsx | 11 ----------- src/JournalViewAddressBook.tsx | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/JournalView.tsx b/src/JournalView.tsx index 6bdcfaf..d6a94f5 100644 --- a/src/JournalView.tsx +++ b/src/JournalView.tsx @@ -1,13 +1,9 @@ import * as React from 'react'; -import { Route, Redirect } from 'react-router'; -import { Link } from 'react-router-dom'; import { Tabs, Tab } from 'material-ui/Tabs'; import { EteSyncContextType } from './EteSyncContext'; import * as EteSync from './api/EteSync'; -import { routeResolver } from './App'; - import { JournalViewEntries } from './JournalViewEntries'; import { JournalViewAddressBook } from './JournalViewAddressBook'; import { JournalViewCalendar } from './JournalViewCalendar'; @@ -86,24 +82,17 @@ export class JournalView extends React.Component { } >

{collectionInfo.displayName}

{itemsView}
} >

{collectionInfo.displayName}

;
- } - /> ); } diff --git a/src/JournalViewAddressBook.tsx b/src/JournalViewAddressBook.tsx index 971967f..c140bfd 100644 --- a/src/JournalViewAddressBook.tsx +++ b/src/JournalViewAddressBook.tsx @@ -70,7 +70,7 @@ export class JournalViewAddressBook extends React.Component {
(