Skip to content

Commit

Permalink
fix: refactored to fix the pre-render error on next build
Browse files Browse the repository at this point in the history
  • Loading branch information
louremipsum committed Feb 13, 2024
1 parent d2ec517 commit f17beaa
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions src/app/error/notverify/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Flex justify="center">
<Loader size={50} color="white" type="bars" />
</Flex>
);
};

const NotVerfiedEmail = () => {
const searchParams = useSearchParams();
Expand Down Expand Up @@ -39,4 +57,12 @@ const NotVerfiedEmail = () => {
);
};

export default NotVerfiedEmail;
const NotVerfiedEmailPage = () => {
return (
<Suspense fallback={fallbackLoader()}>
<NotVerfiedEmail />
</Suspense>
);
};

export default NotVerfiedEmailPage;

0 comments on commit f17beaa

Please sign in to comment.