aboutsummaryrefslogtreecommitdiffstats
path: root/src/contexts
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-09 21:21:16 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-09 21:21:16 -0400
commitc684bdb9ece99935c4c5f3a3eb81787cc2a0ef19 (patch)
treedb6b73e9722ed92b2471cd86dcb32be82322d85a /src/contexts
parent1255ea83568701f460f721e0c1a5d461fb0c5a25 (diff)
parente25a6d3be9b9ae443dd3e1cd57a8c5912cc088b2 (diff)
downloaddonetick-frontend-c684bdb9ece99935c4c5f3a3eb81787cc2a0ef19.tar.gz
donetick-frontend-c684bdb9ece99935c4c5f3a3eb81787cc2a0ef19.tar.bz2
donetick-frontend-c684bdb9ece99935c4c5f3a3eb81787cc2a0ef19.zip
Merge branch 'dev'
Diffstat (limited to 'src/contexts')
-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',