aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/Landing/Landing.jsx
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-09 21:21:00 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-09 21:21:00 -0400
commite25a6d3be9b9ae443dd3e1cd57a8c5912cc088b2 (patch)
tree8900f75514f0b2b3b9a1b44d28f436ec10cf8393 /src/views/Landing/Landing.jsx
parent8da220e990b5ab15509848d4d7a57298eb6e808e (diff)
downloaddonetick-frontend-e25a6d3be9b9ae443dd3e1cd57a8c5912cc088b2.tar.gz
donetick-frontend-e25a6d3be9b9ae443dd3e1cd57a8c5912cc088b2.tar.bz2
donetick-frontend-e25a6d3be9b9ae443dd3e1cd57a8c5912cc088b2.zip
Add VITE_IS_LANDING_DEFAULT flag for conditional rendering of landing page
Diffstat (limited to '')
-rw-r--r--src/views/Landing/Landing.jsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/views/Landing/Landing.jsx b/src/views/Landing/Landing.jsx
index fbdefed..a8b650d 100644
--- a/src/views/Landing/Landing.jsx
+++ b/src/views/Landing/Landing.jsx
@@ -1,7 +1,7 @@
import { Container, Grid } from '@mui/joy'
import AOS from 'aos'
import 'aos/dist/aos.css'
-import { useEffect, useState } from 'react'
+import { useEffect } from 'react'
import { useNavigate } from 'react-router-dom'
import DemoAssignee from './DemoAssignee'
import DemoHistory from './DemoHistory'
@@ -11,11 +11,6 @@ import FeaturesSection from './FeaturesSection'
import HomeHero from './HomeHero'
const Landing = () => {
const Navigate = useNavigate()
- const getCurrentUser = () => {
- return JSON.parse(localStorage.getItem('user'))
- }
- const [currentUser, setCurrentUser] = useState(getCurrentUser())
-
useEffect(() => {
AOS.init({
once: false, // whether animation should happen only once - while scrolling down