use hash router for client-side routing

This commit is contained in:
jinhojang6 2020-02-22 22:19:43 +09:00 committed by Jakub
parent 256be7fa0d
commit fba772353e
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import React from 'react'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import { HashRouter, Route, Switch } from 'react-router-dom'
import { connect } from 'react-redux'
// Components
@ -19,7 +19,7 @@ import Upload from '../pages/Upload'
import NowPlayingPage from '../pages/NowPlaying'
const AppRouter = ({ theme }) => (
<Router>
<HashRouter>
<MobileNav />
<div className={`app-wrapper ${theme}`}>
<div>
@ -40,7 +40,7 @@ const AppRouter = ({ theme }) => (
</Switch>
</div>
</div>
</Router>
</HashRouter>
)
const mapStateToProps = state => ({