|
|
@@ -1,7 +1,7 @@ |
|
|
|
import { Redirect, Route } from 'react-router-dom'; |
|
|
|
import { IonApp, IonRouterOutlet } from '@ionic/react'; |
|
|
|
import { IonReactRouter } from '@ionic/react-router'; |
|
|
|
import Home from './pages/Home'; |
|
|
|
import WelcomePage from './pages/onboarding/Welcome'; |
|
|
|
|
|
|
|
/* Core CSS required for Ionic components to work properly */ |
|
|
|
import '@ionic/react/css/core.css'; |
|
|
@@ -21,16 +21,17 @@ import '@ionic/react/css/display.css'; |
|
|
|
|
|
|
|
/* Theme variables */ |
|
|
|
import './theme/variables.css'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
const App: React.FC = () => ( |
|
|
|
<IonApp> |
|
|
|
<IonReactRouter> |
|
|
|
<IonRouterOutlet> |
|
|
|
<Route exact path="/home"> |
|
|
|
<Home /> |
|
|
|
<Route exact path="/welcome"> |
|
|
|
<WelcomePage /> |
|
|
|
</Route> |
|
|
|
<Route exact path="/"> |
|
|
|
<Redirect to="/home" /> |
|
|
|
<Redirect to="/welcome" /> |
|
|
|
</Route> |
|
|
|
</IonRouterOutlet> |
|
|
|
</IonReactRouter> |
|
|
|