Add VITE_IS_LANDING_DEFAULT flag for conditional rendering of landing page

This commit is contained in:
Mo Tarbin 2024-07-09 21:21:00 -04:00
parent 8da220e990
commit e25a6d3be9
5 changed files with 39 additions and 9 deletions

View file

@ -61,6 +61,17 @@ const HomeHero = () => {
>
tick
</span>
<span
style={{
fontSize: 20,
fontWeight: 700,
position: 'relative',
top: 12,
right: 45,
}}
>
Beta
</span>
</Typography>
</Box>
)

View file

@ -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