Skip to content

Commit

Permalink
RSVP badge
Browse files Browse the repository at this point in the history
  • Loading branch information
meisullum committed Dec 3, 2024
1 parent 5253bc9 commit 2c2032f
Show file tree
Hide file tree
Showing 2 changed files with 7,819 additions and 6,445 deletions.
11 changes: 10 additions & 1 deletion apps/web/src/app/admin/users/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Image from "next/image";
import { Button } from "@/components/shadcn/ui/button";
import { Badge } from "@/components/shadcn/ui/badge";
import { Info } from "lucide-react";
import { CalendarCheck, Info } from "lucide-react";
import Link from "next/link";
import UpdateRoleDialog from "@/components/admin/users/UpdateRoleDialog";
import {
Expand Down Expand Up @@ -80,6 +80,14 @@ export default async function Page({ params }: { params: { slug: string } }) {
</h2>
{/* <p className="mt-5 text-sm">{team.bio}</p> */}
<div className="mt-5 flex gap-x-2">

{user.isRSVPed &&
(<Badge className="no-select bg-gradient-to-r from-teal-400 to-blue-500 bg-clip-padding text-center hover:from-teal-500 hover:to-blue-600">
<CalendarCheck className="mr-1 h-3 w-3" />
RSVP
</Badge>)
}

<Badge className="no-select">
Joined{" "}
{user.signupTime
Expand All @@ -88,6 +96,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
.slice(1)
.join(" ")}
</Badge>

</div>
</div>
<div className="col-span-2 overflow-x-hidden">
Expand Down
Loading

0 comments on commit 2c2032f

Please sign in to comment.