From 56aeb285c0e6ab382e3a92305aa14ff338af8be0 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 25 Sep 2020 03:39:53 -0700 Subject: [PATCH] Implement history --- src/components/Main/Main.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Main/Main.tsx b/src/components/Main/Main.tsx index b769a6f1..8298674d 100644 --- a/src/components/Main/Main.tsx +++ b/src/components/Main/Main.tsx @@ -1,5 +1,7 @@ import React from 'react' -import { Switch, Route } from 'react-router-dom' +import { Router, Route } from 'react-router-dom' + +import history from '~utils/history' import New from '~routes/New/New' import Party from '~routes/Party/Party' @@ -12,11 +14,11 @@ import Parties from '~routes/Parties/Parties' // when the pathname is exactly the string "/" const Main = () => (
- + - +
)