File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import { ArrowRight , Home } from "lucide-react" ;
44import { motion } from "motion/react" ;
55import { useTranslations } from "next-intl" ;
6- import { useEffect , useState } from "react" ;
76import { GradientText } from "@/components/animate-ui/gradient-text" ;
87import { HoleBackground } from "@/components/animate-ui/hole-background" ;
98import { Link } from "@/i18n/navigation" ;
109
1110export default function NotFoundPage ( ) {
1211 const t = useTranslations ( "not-found" ) ;
13- const [ mounted , setMounted ] = useState ( false ) ;
14-
15- useEffect ( ( ) => {
16- setMounted ( true ) ;
17- } , [ ] ) ;
18-
19- if ( ! mounted ) return null ;
2012
2113 return (
2214 < div className = "relative flex min-h-screen items-center justify-center" >
Original file line number Diff line number Diff line change @@ -11,21 +11,13 @@ import {
1111import { motion } from "motion/react" ;
1212import Link from "next/link" ;
1313import { useTranslations } from "next-intl" ;
14- import { useEffect , useState } from "react" ;
1514import { BubbleBackground } from "@/components/animate-ui/bubble-background" ;
1615import { GradientText } from "@/components/animate-ui/gradient-text" ;
1716import { RippleButton } from "@/components/animate-ui/ripple-button" ;
1817
1918export default function HomePage ( ) {
20- const [ mounted , setMounted ] = useState ( false ) ;
2119 const t = useTranslations ( "home" ) ;
2220
23- useEffect ( ( ) => {
24- setMounted ( true ) ;
25- } , [ ] ) ;
26-
27- if ( ! mounted ) return null ;
28-
2921 return (
3022 < div className = "min-h-screen bg-[oklch(0.129_0.042_264.695)]" >
3123 { /* Hero Section */ }
You can’t perform that action at this time.
0 commit comments