From 3e3f3ba9e93b21de5fb0538e652330fd48529e75 Mon Sep 17 00:00:00 2001 From: Adam Kendis Date: Thu, 17 Dec 2020 12:47:25 -0800 Subject: [PATCH 1/9] Update Routes, add Router --- client/App.jsx | 13 +++++-------- client/Routes.jsx | 29 +++++++++++++++++------------ client/index.js | 8 +++++++- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/client/App.jsx b/client/App.jsx index 21a96c6d0..47aaad02e 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -1,13 +1,11 @@ import React, { useEffect } from 'react'; import PropTypes from 'proptypes'; +import { BrowserRouter } from 'react-router-dom'; import { connect } from 'react-redux'; -import { ThemeProvider } from '@material-ui/core/styles'; -import { CssBaseline } from '@material-ui/core'; import { getMetadataRequest } from '@reducers/metadata'; +import Routes from './Routes'; import Header from '@components/Header'; import Footer from '@components/Footer'; -import MapContainer from '@components/Map'; -import theme from './theme/theme'; const App = ({ getMetadata, @@ -17,12 +15,11 @@ const App = ({ }); return ( - - +
- +