// REQ102-navigation-bar import { IonIcon, IonLabel, IonRouterOutlet, IonTabBar, IonTabButton, IonTabs } from '@ionic/react'; import { calendar, informationCircle, location, people } from 'ionicons/icons'; import React, { useContext } from 'react'; import { Redirect, Route } from 'react-router'; import About from '../About'; import MapView from '../MapView'; import SchedulePage from '../SchedulePage'; import SessionDetail from '../SessionDetail'; import SpeakerDetail from '../SpeakerDetail'; import SpeakerList from '../SpeakerList'; // import { AppContext } from '../../data/AppContext'; // import Chat from '../chat.del.3'; import Events from '../events'; import FavouriteEvents from '../favourite_events'; import Messages from '../messages'; import NearBy from '../near_by'; import Orders from '../orders'; import Profile from '../profile'; import UserProfile from '../user_profile'; interface MainTabsProps {} const MainTabs: React.FC = () => { const { showBottomTabBar } = useContext(AppContext); return ( {/* Using the render method prop cuts down the number of renders your components will have due to route changes. Use the component prop when your component depends on the RouterComponentProps passed in automatically. */} } exact={true} /> } exact={true} /> } exact={true} /> } exact={true} /> } exact={true} /> } exact={true} /> {/* FIXME: chat room missing */} {/* */} } exact={true} /> } exact={true} /> } exact={true} /> } exact={true} /> {'Events'} {'NearBy'} {'Orders'} {'Message'} {'Profile'} ); }; export default MainTabs;