auth guard
This commit is contained in:
parent
6142b571b9
commit
36a435a757
@ -10,7 +10,7 @@ import { unixTimeNowInSeconds } from "@/lib/nostr/dates";
|
|||||||
import useCurrentUser from "@/lib/hooks/useCurrentUser";
|
import useCurrentUser from "@/lib/hooks/useCurrentUser";
|
||||||
import { createEvent } from "@/lib/actions/create";
|
import { createEvent } from "@/lib/actions/create";
|
||||||
import { useNDK } from "@/app/_providers/ndk";
|
import { useNDK } from "@/app/_providers/ndk";
|
||||||
|
import useAuthGuard from "./hooks/useAuthGuard";
|
||||||
type RSVPModalProps = {
|
type RSVPModalProps = {
|
||||||
eventReference: string;
|
eventReference: string;
|
||||||
};
|
};
|
||||||
@ -22,6 +22,7 @@ const statusMap = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function RSVPModal({ eventReference }: RSVPModalProps) {
|
export default function RSVPModal({ eventReference }: RSVPModalProps) {
|
||||||
|
useAuthGuard();
|
||||||
const modal = useModal();
|
const modal = useModal();
|
||||||
const { ndk } = useNDK();
|
const { ndk } = useNDK();
|
||||||
const { currentUser } = useCurrentUser();
|
const { currentUser } = useCurrentUser();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user