We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db48201 commit f7730a2Copy full SHA for f7730a2
src/app/(app)/workshop/[workshopId]/_components/workshop-button.tsx
@@ -54,12 +54,20 @@ export function WorkshopButton({
54
)
55
}
56
57
+ if (hasWorkshopStarted && isUserRegistered) {
58
+ return (
59
+ <Link
60
+ className={cn(buttonVariants({ size: "sm" }))}
61
+ href={`/session/${workshopId}`}
62
+ >
63
+ Join
64
+ </Link>
65
+ )
66
+ }
67
+
68
return (
- <Link
- className={cn(buttonVariants({ size: "sm" }))}
- href={`/session/${workshopId}`}
- >
- Join
- </Link>
69
+ <Button size="sm" disabled>
70
+ Closed
71
+ </Button>
72
73
0 commit comments