File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use client" ;
22
3- import { useState , useEffect } from "react" ;
3+ import { Suspense , useState , useEffect } from "react" ;
44import { useRouter , useSearchParams } from "next/navigation" ;
55import {
66 signInWithPopup ,
@@ -14,6 +14,20 @@ import { motion } from "framer-motion";
1414import { Button } from "@/components/ui/Button" ;
1515
1616export default function LoginPage ( ) {
17+ return (
18+ < Suspense
19+ fallback = {
20+ < div className = "flex min-h-screen items-center justify-center bg-[var(--bg-secondary)]" >
21+ < div className = "h-8 w-8 animate-spin rounded-full border-4 border-[var(--accent)] border-t-transparent" />
22+ </ div >
23+ }
24+ >
25+ < LoginContent />
26+ </ Suspense >
27+ ) ;
28+ }
29+
30+ function LoginContent ( ) {
1731 const { user, loading, setPlan } = useAuth ( ) ;
1832 const router = useRouter ( ) ;
1933 const searchParams = useSearchParams ( ) ;
You can’t perform that action at this time.
0 commit comments