adding change option
This commit is contained in:
parent
36a435a757
commit
88f0972dff
@ -2,6 +2,7 @@ import { useState } from "react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { HiOutlineLightningBolt } from "react-icons/hi";
|
||||
import { RiRepeatFill } from "react-icons/ri";
|
||||
|
||||
import RSVPModal from "@/components/Modals/RSVP";
|
||||
import ConfirmModal from "@/components/Modals/Confirm";
|
||||
@ -89,6 +90,7 @@ export default function RSVPButton({ event }: RSVPButtonProps) {
|
||||
if (rsvpEvent) {
|
||||
const rsvpResponse = getTagValues("l", rsvpEvent.tags);
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
<Button disabled>
|
||||
{rsvpResponse === "accepted"
|
||||
? "Going"
|
||||
@ -96,6 +98,16 @@ export default function RSVPButton({ event }: RSVPButtonProps) {
|
||||
? "Tentative"
|
||||
: "Not Going"}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() =>
|
||||
modal?.show(<RSVPModal eventReference={eventReference} />)
|
||||
}
|
||||
variant={"secondary"}
|
||||
size="icon"
|
||||
>
|
||||
<RiRepeatFill className="h-5 w-5" />
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user