From 34a7790f0632d28261add8eac12c3831ed37130d Mon Sep 17 00:00:00 2001 From: Jareth Whitney Date: Wed, 2 Oct 2024 13:43:02 -0700 Subject: [PATCH] feature/deseng695: Updated contact create/edit form, minor styling update to image picker. --- CHANGELOG.MD | 2 +- .../WhoIsListening/AddContactDrawer.tsx | 82 ++++++++++--------- .../WhoIsListening/WhoIsListeningForm.tsx | 1 + met-web/src/components/imageUpload/index.tsx | 11 ++- 4 files changed, 56 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 7f52779c4..1d8fa65a7 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -6,6 +6,7 @@ - Added option to enter widget description text (below title, above contacts) - Adjusted CSS to accomodate multiple viewports - Added ARIA labels for accessibility + - Updated contact create/edit form - **Feature** New Video Widget front end [🎟️ DESENG-692](https://citz-gdx.atlassian.net/browse/DESENG-692) - Changed icon colour from yellow to white to accomodate company branding requests @@ -22,7 +23,6 @@ ## September 25, 2024 - **Feature** New Video Widget front end [🎟️ DESENG-692](https://citz-gdx.atlassian.net/browse/DESENG-692) - - Removed unneeded tables from db - Updated all other met_api and met_web logic to accomodate this diff --git a/met-web/src/components/engagement/form/EngagementWidgets/WhoIsListening/AddContactDrawer.tsx b/met-web/src/components/engagement/form/EngagementWidgets/WhoIsListening/AddContactDrawer.tsx index 6b6e1dbb6..9c5d3db3c 100644 --- a/met-web/src/components/engagement/form/EngagementWidgets/WhoIsListening/AddContactDrawer.tsx +++ b/met-web/src/components/engagement/form/EngagementWidgets/WhoIsListening/AddContactDrawer.tsx @@ -143,7 +143,7 @@ const AddContactDrawer = () => { return ( - + { {contactToEdit ? 'Edit' : 'Add'} Contact - + Profile Picture { helpText={'Drop an image here or click to select one.'} /> - + - Name * + Name (Required) { /> - Title + Title (Optional) { size="small" /> + + Phone (Optional) + + + + Email (Required) + + - - Phone - - - - Email * - - + - Address + Address (Optional) { /> - Bio + Biography (Optional) { - + {helpText} - + Supported formats: JPG, PNG, WEBP