From b951a208caac7e2c814f5c1434404d2e402370fa Mon Sep 17 00:00:00 2001 From: ja0911 Date: Sun, 27 Jun 2021 11:49:21 -0700 Subject: [PATCH 1/9] add private description field to create/edit event forms and display private descriptions for events that have them --- src/components/EventsForm.tsx | 19 +++++++++++++++---- src/components/event-details/EventDetails.tsx | 8 +++++++- src/containers/createEvent/ducks/types.ts | 1 + src/containers/createEvent/index.tsx | 1 + src/containers/editEvent/index.tsx | 2 ++ src/containers/upcoming-events/ducks/types.ts | 1 + 6 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/components/EventsForm.tsx b/src/components/EventsForm.tsx index 386bef5e..3aedd4c1 100644 --- a/src/components/EventsForm.tsx +++ b/src/components/EventsForm.tsx @@ -51,12 +51,14 @@ export interface EventsForm { export interface EventsFormData extends EventsForm { thumbnail?: FileField; + privateDescription?: string; start: Date; end: Date; } export interface EventsFormInitialValues extends EventsForm { thumbnail?: string; + privateDescription?: string; start: Moment; end: Moment; } @@ -177,10 +179,19 @@ const EventsForm: React.FC = ({