main tabs replace current route

This commit is contained in:
NikolaBorislavovHristov 2018-06-15 17:41:10 +03:00
parent 9747d7d676
commit 4b0c3cea3b

View file

@ -14,10 +14,10 @@ class Main extends Component {
<div className={styles['root-container']}>
<NavBar
tabs={[
{ icon: 'ic_board', label: 'Board', to: '/', exact: true },
{ icon: 'ic_discover', label: 'Discover', to: '/discover' },
{ icon: 'ic_library', label: 'Library', to: '/library' },
{ icon: 'ic_calendar', label: 'Calendar', to: '/calendar' }
{ icon: 'ic_board', label: 'Board', to: '/', exact: true, replace: true },
{ icon: 'ic_discover', label: 'Discover', to: '/discover', replace: true },
{ icon: 'ic_library', label: 'Library', to: '/library', replace: true },
{ icon: 'ic_calendar', label: 'Calendar', to: '/calendar', replace: true }
]}
searchInput={true}
/>