Skip to content

Commit

Permalink
HK-177-add-rsvp-badge (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
meisullum authored Dec 4, 2024
1 parent 81f9cf5 commit 631fb2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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 { Info, CalendarCheck } from "lucide-react";
import Link from "next/link";
import UpdateRoleDialog from "@/components/admin/users/UpdateRoleDialog";
import {
Expand Down Expand Up @@ -88,6 +88,12 @@ export default async function Page({ params }: { params: { slug: string } }) {
.slice(1)
.join(" ")}
</Badge>
{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>
)}
</div>
</div>
<div className="col-span-2 overflow-x-hidden">
Expand Down

0 comments on commit 631fb2d

Please sign in to comment.