feat: remove AppRoute component and adjust related route configurations
This commit is contained in:
@@ -55,7 +55,6 @@ import Tutorial from './pages/Tutorial';
|
|||||||
import HomeOrTutorial from './components/HomeOrTutorial';
|
import HomeOrTutorial from './components/HomeOrTutorial';
|
||||||
import { Schedule } from './models/Schedule';
|
import { Schedule } from './models/Schedule';
|
||||||
import RedirectToLogin from './components/RedirectToLogin';
|
import RedirectToLogin from './components/RedirectToLogin';
|
||||||
import AppRoute from './AppRoute';
|
|
||||||
|
|
||||||
import AppDemoRoute from './routes/DemoRoute';
|
import AppDemoRoute from './routes/DemoRoute';
|
||||||
import Settings from './pages/Settings';
|
import Settings from './pages/Settings';
|
||||||
@@ -114,8 +113,6 @@ const IonicApp: React.FC<IonicAppProps> = ({ darkMode, schedule, setIsLoggedIn,
|
|||||||
which makes transitions between tabs and non tab pages smooth
|
which makes transitions between tabs and non tab pages smooth
|
||||||
*/}
|
*/}
|
||||||
|
|
||||||
<AppRoute />
|
|
||||||
|
|
||||||
<AppDemoRoute />
|
<AppDemoRoute />
|
||||||
|
|
||||||
<Route path="/tabs" render={() => <MainTabs />} />
|
<Route path="/tabs" render={() => <MainTabs />} />
|
||||||
@@ -140,8 +137,6 @@ const IonicApp: React.FC<IonicAppProps> = ({ darkMode, schedule, setIsLoggedIn,
|
|||||||
{/* component make the ":id" available in the "OrderDetail" */}
|
{/* component make the ":id" available in the "OrderDetail" */}
|
||||||
<Route exact={true} path="/order_detail/:id" component={OrderDetail} />
|
<Route exact={true} path="/order_detail/:id" component={OrderDetail} />
|
||||||
|
|
||||||
{/* <Route path="/tabs/speakers/:id" component={SpeakerDetail} exact={true} /> */}
|
|
||||||
|
|
||||||
<Route exact={true} path="/helloworld" component={Helloworld} />
|
<Route exact={true} path="/helloworld" component={Helloworld} />
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
|
Reference in New Issue
Block a user