Android app default route is /my/chores
This commit is contained in:
parent
ba149d0e96
commit
a57def2f92
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@ import ChoreEdit from '@/views/ChoreEdit/ChoreEdit'
|
||||||
import ChoresOverview from '@/views/ChoresOverview'
|
import ChoresOverview from '@/views/ChoresOverview'
|
||||||
import Error from '@/views/Error'
|
import Error from '@/views/Error'
|
||||||
import Settings from '@/views/Settings/Settings'
|
import Settings from '@/views/Settings/Settings'
|
||||||
|
import { Capacitor } from '@capacitor/core'
|
||||||
import { RouterProvider, createBrowserRouter } from 'react-router-dom'
|
import { RouterProvider, createBrowserRouter } from 'react-router-dom'
|
||||||
import ForgotPasswordView from '../views/Authorization/ForgotPasswordView'
|
import ForgotPasswordView from '../views/Authorization/ForgotPasswordView'
|
||||||
import LoginSettings from '../views/Authorization/LoginSettings'
|
import LoginSettings from '../views/Authorization/LoginSettings'
|
||||||
|
@ -25,7 +26,10 @@ import ThingsView from '../views/Things/ThingsView'
|
||||||
import UserActivities from '../views/User/UserActivities'
|
import UserActivities from '../views/User/UserActivities'
|
||||||
import UserPoints from '../views/User/UserPoints'
|
import UserPoints from '../views/User/UserPoints'
|
||||||
const getMainRoute = () => {
|
const getMainRoute = () => {
|
||||||
if (import.meta.env.VITE_IS_LANDING_DEFAULT === 'true') {
|
if (
|
||||||
|
import.meta.env.VITE_IS_LANDING_DEFAULT === 'true' &&
|
||||||
|
!Capacitor.isNativePlatform()
|
||||||
|
) {
|
||||||
return <Landing />
|
return <Landing />
|
||||||
}
|
}
|
||||||
return <MyChores />
|
return <MyChores />
|
||||||
|
|
Loading…
Add table
Reference in a new issue