Skip to content

Commit df23616

Browse files
committed
fix: remove unnecessary client-only loading
1 parent e0c9c4d commit df23616

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/app/[locale]/not-found.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,12 @@
33
import { ArrowRight, Home } from "lucide-react";
44
import { motion } from "motion/react";
55
import { useTranslations } from "next-intl";
6-
import { useEffect, useState } from "react";
76
import { GradientText } from "@/components/animate-ui/gradient-text";
87
import { HoleBackground } from "@/components/animate-ui/hole-background";
98
import { Link } from "@/i18n/navigation";
109

1110
export 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">

src/app/[locale]/page.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,13 @@ import {
1111
import { motion } from "motion/react";
1212
import Link from "next/link";
1313
import { useTranslations } from "next-intl";
14-
import { useEffect, useState } from "react";
1514
import { BubbleBackground } from "@/components/animate-ui/bubble-background";
1615
import { GradientText } from "@/components/animate-ui/gradient-text";
1716
import { RippleButton } from "@/components/animate-ui/ripple-button";
1817

1918
export 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 */}

0 commit comments

Comments
 (0)