Fix menu routing
This commit is contained in:
+23
-25
@@ -10,31 +10,29 @@ import Settings from './Settings';
|
|||||||
|
|
||||||
const Tabs = () => {
|
const Tabs = () => {
|
||||||
return (
|
return (
|
||||||
<IonReactRouter>
|
<IonTabs>
|
||||||
<IonTabs>
|
<IonRouterOutlet>
|
||||||
<IonRouterOutlet>
|
<Route path="/tabs/feed" component={Home} exact={true} />
|
||||||
<Route path="/tabs/feed" component={Home} exact={true} />
|
<Route path="/tabs/lists" component={Lists} exact={true} />
|
||||||
<Route path="/tabs/lists" component={Lists} exact={true} />
|
<Route path="/tabs/lists/:listId" component={ListDetail} exact={true} />
|
||||||
<Route path="/tabs/lists/:listId" component={ListDetail} exact={true} />
|
<Route path="/tabs/settings" component={Settings} exact={true} />
|
||||||
<Route path="/tabs/settings" component={Settings} exact={true} />
|
<Route path="/tabs" render={() => <Redirect to="/tabs/feed" />} exact={true} />
|
||||||
<Route path="/tabs" render={() => <Redirect to="/tabs/feed" />} exact={true} />
|
</IonRouterOutlet>
|
||||||
</IonRouterOutlet>
|
<IonTabBar slot="bottom">
|
||||||
<IonTabBar slot="bottom">
|
<IonTabButton tab="tab1" href="/tabs/feed">
|
||||||
<IonTabButton tab="tab1" href="/tabs/feed">
|
<IonIcon icon={flash} />
|
||||||
<IonIcon icon={flash} />
|
<IonLabel>Feed</IonLabel>
|
||||||
<IonLabel>Feed</IonLabel>
|
</IonTabButton>
|
||||||
</IonTabButton>
|
<IonTabButton tab="tab2" href="/tabs/lists">
|
||||||
<IonTabButton tab="tab2" href="/tabs/lists">
|
<IonIcon icon={list} />
|
||||||
<IonIcon icon={list} />
|
<IonLabel>Lists</IonLabel>
|
||||||
<IonLabel>Lists</IonLabel>
|
</IonTabButton>
|
||||||
</IonTabButton>
|
<IonTabButton tab="tab3" href="/tabs/settings">
|
||||||
<IonTabButton tab="tab3" href="/tabs/settings">
|
<IonIcon icon={cog} />
|
||||||
<IonIcon icon={cog} />
|
<IonLabel>Settings</IonLabel>
|
||||||
<IonLabel>Settings</IonLabel>
|
</IonTabButton>
|
||||||
</IonTabButton>
|
</IonTabBar>
|
||||||
</IonTabBar>
|
</IonTabs>
|
||||||
</IonTabs>
|
|
||||||
</IonReactRouter>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user