Add community event types
cgen-e823bb084deb4bcaad5b17b6ac93a502
This commit is contained in:
parent
9a83bbeaff
commit
acd49b4949
1 changed files with 32 additions and 0 deletions
|
|
@ -38,6 +38,38 @@ import {
|
|||
Loader2,
|
||||
} from "lucide-react";
|
||||
|
||||
type EventStatus = "Registration Open" | "Recurring" | "Upcoming" | "Waitlist";
|
||||
|
||||
type CommunityEvent = {
|
||||
id: string;
|
||||
title: string;
|
||||
date: string;
|
||||
location: string;
|
||||
type: string;
|
||||
participants: number;
|
||||
prize?: string | null;
|
||||
status: EventStatus;
|
||||
description: string;
|
||||
agenda: string[];
|
||||
registrationEnabled: boolean;
|
||||
registrationUrl?: string;
|
||||
};
|
||||
|
||||
type EventRegistrationPayload = {
|
||||
name: string;
|
||||
email: string;
|
||||
teamName?: string;
|
||||
message?: string;
|
||||
};
|
||||
|
||||
interface EventCardProps {
|
||||
event: CommunityEvent;
|
||||
animationDelay: number;
|
||||
isRegistered: boolean;
|
||||
registrant?: EventRegistrationPayload;
|
||||
onRegister: (payload: EventRegistrationPayload) => void;
|
||||
}
|
||||
|
||||
export default function Community() {
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const toastShownRef = useRef(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue