Skip to content

Commit 1e6e60f

Browse files
combined events and event hook into one
1 parent f991512 commit 1e6e60f

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

client/src/hooks/event.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

client/src/hooks/events.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ export interface EventImage {
1111
id: number;
1212
image: string;
1313
}
14+
15+
export interface Participant {
16+
id: number;
17+
username: string;
18+
first_name: string;
19+
email: string;
20+
}
21+
1422
export interface Event {
1523
id: number;
1624
event_name: string;
@@ -19,6 +27,7 @@ export interface Event {
1927
event_location: string;
2028
tags: Tag[];
2129
images: EventImage[];
30+
participants: Participant[];
2231
}
2332

2433
// hook to fetch events list

0 commit comments

Comments
 (0)