From b57a036a005920d313c4b685ca3e7cdae6f01f96 Mon Sep 17 00:00:00 2001 From: Aamir Azad Date: Sat, 26 Oct 2024 10:38:00 -0400 Subject: [PATCH] Move to it's own component --- src/app/sign-in/page.tsx | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/app/sign-in/page.tsx b/src/app/sign-in/page.tsx index 69a8ab8..6acca3e 100644 --- a/src/app/sign-in/page.tsx +++ b/src/app/sign-in/page.tsx @@ -6,27 +6,33 @@ import { RedirectToSignIn, SignedIn, SignedOut } from "@clerk/nextjs"; import { useSearchParams } from "next/navigation"; import { Suspense } from "react"; -export default function SignIn() { +function SignInContent() { const searchParams = useSearchParams(); const redirect = searchParams.get("redirect"); return ( - -
- - Signing you in... - - - - You are already signed in -
- Go{" "} - - Home - -
-
-
+
+ + Signing you in... + + + + You are already signed in +
+ Go{" "} + + Home + +
+
+
+ ); +} + +export default function SignIn() { + return ( + Loading...}> + ); }