From f17beaa7e47242315636f947eabac7d141502ae2 Mon Sep 17 00:00:00 2001 From: louremipsum Date: Wed, 14 Feb 2024 00:05:18 +0530 Subject: [PATCH] fix: refactored to fix the pre-render error on next build --- src/app/error/notverify/page.tsx | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/app/error/notverify/page.tsx b/src/app/error/notverify/page.tsx index 6f7c732..6952e53 100644 --- a/src/app/error/notverify/page.tsx +++ b/src/app/error/notverify/page.tsx @@ -1,8 +1,26 @@ "use client"; -import { Button, Container, Group, Image, Stack, Text } from "@mantine/core"; +import { + Button, + Container, + Group, + Image, + Stack, + Text, + Flex, + Loader, +} from "@mantine/core"; import Link from "next/link"; import { useSearchParams } from "next/navigation"; +import { Suspense } from "react"; + +const fallbackLoader = () => { + return ( + + + + ); +}; const NotVerfiedEmail = () => { const searchParams = useSearchParams(); @@ -39,4 +57,12 @@ const NotVerfiedEmail = () => { ); }; -export default NotVerfiedEmail; +const NotVerfiedEmailPage = () => { + return ( + + + + ); +}; + +export default NotVerfiedEmailPage;