aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/EventCard/EventCard.tsx2
-rw-r--r--src/containers/BsuFantomSection/EventForm.tsx3
-rw-r--r--src/types.ts3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/components/EventCard/EventCard.tsx b/src/components/EventCard/EventCard.tsx
index 67a89e7..179a868 100644
--- a/src/components/EventCard/EventCard.tsx
+++ b/src/components/EventCard/EventCard.tsx
@@ -57,12 +57,12 @@ const EventCard: React.FC<PropTypes> = ({ event, mutate }) => {
const classes = useStyles();
const { user } = useAuth();
const {
- name,
schedule,
status,
nextRunAt,
lastRunAt,
context: {
+ name,
participants,
conferenceId,
attendanceId
diff --git a/src/containers/BsuFantomSection/EventForm.tsx b/src/containers/BsuFantomSection/EventForm.tsx
index 528636f..64d4165 100644
--- a/src/containers/BsuFantomSection/EventForm.tsx
+++ b/src/containers/BsuFantomSection/EventForm.tsx
@@ -20,9 +20,10 @@ const EventForm: React.FC<PropTypes> = ({ mutate }) => {
const handleSubmit = () => {
if (schedule && conferenceId) {
const event: Partial<Event> = {
- name,
+ type: 'class',
schedule,
context: {
+ name,
attendanceId,
conferenceId,
participants: []
diff --git a/src/types.ts b/src/types.ts
index 941bbbb..e41223c 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -9,13 +9,14 @@ export interface User extends Base {
}
export interface EventContext {
+ name: string;
participants: string[];
conferenceId: string;
attendanceId: string;
}
export interface Event extends Base {
- name: string;
+ type: string;
schedule: string;
status?: 'running' | 'complete' | 'failed' | 'notStarted';
failReason?: string;