diff --git a/components/AppShell.jsx b/components/AppShell.jsx index d3b5f28..2fa58ad 100644 --- a/components/AppShell.jsx +++ b/components/AppShell.jsx @@ -9,6 +9,7 @@ import Feed from './pages/Feed'; import Lists from './pages/Lists'; import ListDetail from './pages/ListDetail'; import Settings from './pages/Settings'; +import Tabs from './pages/Tabs'; setupIonicReact({}); @@ -24,37 +25,10 @@ const AppShell = () => { return ( - - - - - - - - - - - - - - - } exact={true} /> - - - - - Feed - - - - Lists - - - - Settings - - - + + } /> + } exact={true} /> + ); diff --git a/components/pages/ListDetail.jsx b/components/pages/ListDetail.jsx index acebadc..188411e 100644 --- a/components/pages/ListDetail.jsx +++ b/components/pages/ListDetail.jsx @@ -42,7 +42,7 @@ const ListDetail = ({ match }) => { return ( - + @@ -50,12 +50,7 @@ const ListDetail = ({ match }) => { {loadedList.name} - - - - {loadedList.name} - - + diff --git a/components/pages/Lists.jsx b/components/pages/Lists.jsx index 3cb6dfa..8e564e0 100644 --- a/components/pages/Lists.jsx +++ b/components/pages/Lists.jsx @@ -33,12 +33,12 @@ const AllLists = ({ onSelect }) => { const Lists = () => { return ( - + Lists - + Lists diff --git a/components/pages/Tabs.jsx b/components/pages/Tabs.jsx new file mode 100644 index 0000000..82de725 --- /dev/null +++ b/components/pages/Tabs.jsx @@ -0,0 +1,39 @@ +import { Redirect, Route } from 'react-router-dom'; +import { IonRouterOutlet, IonTabs, IonTabBar, IonTabButton, IonIcon, IonLabel } from '@ionic/react'; +import { IonReactRouter } from '@ionic/react-router'; +import { cog, flash, list } from 'ionicons/icons'; + +import Home from './Feed'; +import Lists from './Lists'; +import ListDetail from './ListDetail'; +import Settings from './Settings'; + +const Tabs = () => { + return ( + + + } exact={true} /> + } exact={true} /> + } exact={true} /> + } exact={true} /> + } exact={true} /> + + + + + Feed + + + + Lists + + + + Settings + + + + ); +}; + +export default Tabs;