Merge version_4 into main #12
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useEffect } from "react";
|
||||
import { useState } from "react";
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
|
||||
import HeroBillboardGallery from "@/components/sections/hero/HeroBillboardGallery";
|
||||
@@ -30,12 +30,6 @@ import {
|
||||
export default function LandingPage() {
|
||||
const [isAuthenticated, setIsAuthenticated] = useState(false);
|
||||
const [showOnboarding, setShowOnboarding] = useState(false);
|
||||
const [mounted, setMounted] = useState(false);
|
||||
|
||||
// Hydration fix: only render after client mount
|
||||
useEffect(() => {
|
||||
setMounted(true);
|
||||
}, []);
|
||||
|
||||
const handleCompleteOnboarding = () => {
|
||||
try {
|
||||
@@ -63,10 +57,6 @@ export default function LandingPage() {
|
||||
setShowOnboarding(true);
|
||||
};
|
||||
|
||||
if (!mounted) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isAuthenticated && showOnboarding) {
|
||||
return (
|
||||
<ThemeProvider
|
||||
|
||||
Reference in New Issue
Block a user