Add EventDetails component and types with proper type definitions
This commit is contained in:
20
frontend/src/types.ts
Normal file
20
frontend/src/types.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface Event {
|
||||
id: number;
|
||||
title: string;
|
||||
description: string;
|
||||
date: string;
|
||||
location: string;
|
||||
slug: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface Rsvp {
|
||||
id: number;
|
||||
event_id: number;
|
||||
name: string;
|
||||
email: string;
|
||||
status: 'attending' | 'not_attending' | 'maybe';
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
Reference in New Issue
Block a user