Skip to content

Commit

Permalink
fix bottomnav example routing
Browse files Browse the repository at this point in the history
  • Loading branch information
lipp authored and Fa-So committed Nov 2, 2016
1 parent 297041a commit d3a8816
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions examples/js/components/bottomnavigationRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ const links = [
{
icon: <Icon.Home />,
text: 'Home',
link: '/bottomnavigation/home'
link: '/home'
},
{
icon: <Icon.MusicNote />,
text: 'Music',
link: '/bottomnavigation/music'
link: '/music'
},
{
icon: <Icon.Photo />,
text: 'Photos',
link: '/bottomnavigation/photos'
link: '/photos'
}
]
Expand All @@ -47,10 +47,9 @@ const BasicExample = () => (
<HashRouter basename='/bottomnavigation'>
<div style={{height: '600px', width: '100%', margin: '0 auto', border: '10px solid #ececec'}}>
<BottomNavigation links={links}>
<Miss component={() => <Redirect to='/bottomnavigation/home' />} />
<Match pattern='/bottomnavigation/home' component={Home} />
<Match pattern='/bottomnavigation/music' component={Music} />
<Match exactly pattern='/bottomnavigation/photos' component={Photos} />
<Match pattern='/home' component={Home} />
<Match pattern='/music' component={Music} />
<Match exactly pattern='/photos' component={Photos} />
</BottomNavigation>
</div>
</HashRouter>
Expand Down

0 comments on commit d3a8816

Please sign in to comment.