Skip to content

Commit

Permalink
feat: show location page by default
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Mar 10, 2020
1 parent e5890a1 commit 980fc95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ function Navigation() {
</div>
<div className={`${styles.page} ${is('') && 'frontpage'}`}>
<Switch>
<Route path="/location">
<LocationPage />
</Route>
<Route path="/info">
<InfoPage />
</Route>
<Route path={isMobile ? '/projection' : ['/', '/projection']}>
<Route path="/projection">
<ProjectionPage />
</Route>
<Route path={isMobile ? '/location' : ['/', '/location']}>
<LocationPage />
</Route>
</Switch>
</div>
<Menu
Expand All @@ -55,15 +55,15 @@ function Navigation() {
</Menu.Item>
)}
<Menu.Item
active={is('location')}
active={isMobile ? is('location') : is('') || is('location')}
onClick={go('location')}
className={styles.item}
>
<LocationIcon className={styles.icon} />
{!isMobile && t('app.location')}
</Menu.Item>
<Menu.Item
active={isMobile ? is('projection') : is('') || is('projection')}
active={is('projection')}
onClick={go('projection')}
className={styles.item}
>
Expand Down

0 comments on commit 980fc95

Please # to comment.