aboutsummaryrefslogtreecommitdiffstats
path: root/src/contexts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/contexts/RouterContext.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/contexts/RouterContext.jsx b/src/contexts/RouterContext.jsx
index 02df35f..4fea83d 100644
--- a/src/contexts/RouterContext.jsx
+++ b/src/contexts/RouterContext.jsx
@@ -20,6 +20,12 @@ import TermsView from '../views/Terms/TermsView'
import TestView from '../views/TestView/Test'
import ThingsHistory from '../views/Things/ThingsHistory'
import ThingsView from '../views/Things/ThingsView'
+const getMainRoute = () => {
+ if (import.meta.env.VITE_IS_LANDING_DEFAULT === 'true') {
+ return <Landing />
+ }
+ return <MyChores />
+}
const Router = createBrowserRouter([
{
path: '/',
@@ -28,7 +34,7 @@ const Router = createBrowserRouter([
children: [
{
path: '/',
- element: <Landing />,
+ element: getMainRoute(),
},
{
path: '/settings',