Skip to content

Commit

Permalink
πŸ› fix: hotfix build error suspense to use useSearchParams function
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubumjang committed Sep 29, 2024
1 parent e657222 commit aa204a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/login/callback/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useRouter, useSearchParams } from "next/navigation";

import { ScaleLoader } from "react-spinners";
import { Suspense } from "react";
import { toast } from "sonner";
import { useEffect } from "react";
import useGetLoginUserInfo from "@/features/login/api/useGetLoginUserInfo";
Expand Down Expand Up @@ -46,9 +47,11 @@ const LoginCallbackPage = () => {
}, [code]);

return (
<div className="flex w-full h-screen justify-center items-center">
<ScaleLoader color="#4F118C" />
</div>
<Suspense>
<div className="flex w-full h-screen justify-center items-center">
<ScaleLoader color="#4F118C" />
</div>
</Suspense>
);
};

Expand Down

0 comments on commit aa204a6

Please sign in to comment.