auth guard

This commit is contained in:
zmeyer44 2023-11-04 12:01:03 -04:00
parent 6142b571b9
commit 36a435a757

View File

@ -10,7 +10,7 @@ import { unixTimeNowInSeconds } from "@/lib/nostr/dates";
import useCurrentUser from "@/lib/hooks/useCurrentUser";
import { createEvent } from "@/lib/actions/create";
import { useNDK } from "@/app/_providers/ndk";
import useAuthGuard from "./hooks/useAuthGuard";
type RSVPModalProps = {
eventReference: string;
};
@ -22,6 +22,7 @@ const statusMap = {
};
export default function RSVPModal({ eventReference }: RSVPModalProps) {
useAuthGuard();
const modal = useModal();
const { ndk } = useNDK();
const { currentUser } = useCurrentUser();