Skip to content

Commit

Permalink
Switch to HashRouter for better gh pages compatibilitiy
Browse files Browse the repository at this point in the history
  • Loading branch information
milkcee12 committed Feb 6, 2024
1 parent 834660c commit 8eab48d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ import Schedule from './Schedule/Schedule'
import FAQ from './FAQ/FAQ'

import {
BrowserRouter as Router,
HashRouter as Router,
Switch,
Route,
NavLink
Link
} from 'react-router-dom'

export default function App () {
return (
<Router forceRefresh basename={process.env.PUBLIC_URL}>
<Router forceRefresh basename='/'>
<div className='App-header'>
{/* <img src={logo} className="App-logo" alt="logo" /> */}
<NavLink
<Link
className='App-link'
exact to='/'
activeClassName='selected'
>
OVERVIEW
</NavLink>
<NavLink
</Link>
<Link
className='App-link'
exact to='/schedule'
activeClassName='selected'
>
SCHEDULE
</NavLink>
<NavLink
</Link>
<Link
className='App-link'
to='/faq'
activeClassName='selected'
>
FAQ
</NavLink>
</Link>

</div>
<Switch>
Expand Down

0 comments on commit 8eab48d

Please sign in to comment.