Skip to content

Commit

Permalink
(frontend) Redirect from / to /timers
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-johnson committed Sep 10, 2021
1 parent 7521d33 commit 85b30fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'bootstrap/dist/css/bootstrap.min.css'
import './app.css'
import './custom.scss'
import { AppNav, NavPage } from './components/app-nav'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom'
import { LoginPage, TimersPage } from './pages'
import { AppFooter } from './components/app-footer'

Expand All @@ -26,6 +26,7 @@ export default function App(): JSX.Element {
{pages.map(page => (
<Route key={page.href} path={page.href} component={page.component} />
))}
<Redirect from="/" to="/timers" />
</Switch>
</main>
<footer>
Expand Down

0 comments on commit 85b30fc

Please sign in to comment.