Skip to content

Commit

Permalink
KPMP-3293: User browserrouter instead
Browse files Browse the repository at this point in the history
  • Loading branch information
zwright committed Dec 6, 2021
1 parent 30e24c4 commit 4d20961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import ReactGA from 'react-ga';
import { createBrowserHistory } from 'history';
import { Route, Switch, Router } from 'react-router-dom';
import { Route, Switch, BrowserRouter } from 'react-router-dom';
import ErrorBoundaryContainer from './components/Error/ErrorBoundaryContainer';
import Oops from './components/Error/Oops';
import PackageDashboardPageContainer from './components/PackageDashboard/PackageDashboardPageContainer';
Expand Down Expand Up @@ -60,7 +60,7 @@ class App extends Component {
render() {
return (
<Provider store={store}>
<Router history={history}>
<BrowserRouter history={history}>
<ErrorBoundaryContainer>
<NavBar />
<Switch>
Expand All @@ -72,7 +72,7 @@ class App extends Component {
</Switch>
<NavFooter />
</ErrorBoundaryContainer>
</Router>
</BrowserRouter>
</Provider>
);
}
Expand Down

0 comments on commit 4d20961

Please sign in to comment.