Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions apps/web/src/app/sign-in/[[...sign-in]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
// "use client"
import { SignIn } from "@clerk/nextjs";
"use client";
import { SignIn, useAuth } from "@clerk/nextjs";
import { Button } from "@/components/ui/button";
import c from "config";
import Link from "next/link";
import PortalMigrationExplainer from "@/components/dash/shared/PortalMigrationExplainer";

export default function Page() {
const {isLoaded } = useAuth();

if (!isLoaded) {
return (
<main className="flex h-screen w-screen items-center justify-center">
</main>
);
}
return (
<main className="flex h-screen w-screen flex-col items-center justify-center gap-y-5">
<div className="flex max-w-[400px] flex-col items-center justify-center gap-y-5">
<h1 className="text-4xl font-black">{c.clubName}</h1>
<SignIn />
<SignIn forceRedirectUrl="/dash" />
<Link href="/onboarding/migrate" className="w-full">
<Button className="w-full">
Migrate From Legacy Portal
Expand Down
Loading