File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Footer } from "@/components/ui/footer"
8
8
import { MagicHeader } from "@/components/features/magic/magic-header"
9
9
import { Mockup , MockupFrame } from "@/components/ui/mockup"
10
10
import { Icons } from "@/components/icons"
11
+ import { Spinner } from "@/components/icons/spinner"
11
12
import { cn } from "@/lib/utils"
12
13
import Link from "next/link"
13
14
import {
@@ -369,9 +370,19 @@ export function MagicChatPageClient() {
369
370
< Button
370
371
onClick = { handleSubscribe }
371
372
disabled = { isLoading || ! email }
372
- className = "whitespace-nowrap bg-white/20 text-white hover:bg-white/30 backdrop-blur-sm border-none"
373
+ className = { cn (
374
+ "whitespace-nowrap bg-white/20 text-white hover:bg-white/30 backdrop-blur-sm border-none" ,
375
+ isLoading ? "" : "" ,
376
+ ) }
373
377
>
374
- { isLoading ? "Subscribing..." : "Join Waitlist" }
378
+ { isLoading ? (
379
+ < div className = "flex items-center gap-2" >
380
+ < Spinner size = { 16 } color = "white" />
381
+ Joining...
382
+ </ div >
383
+ ) : (
384
+ "Join Waitlist"
385
+ ) }
375
386
</ Button >
376
387
</ div >
377
388
{ error && (
You can’t perform that action at this time.
0 commit comments