From aef7734704ab672ad8d66fb795b314eefe645d1f Mon Sep 17 00:00:00 2001 From: Mike Arlington Date: Wed, 16 Aug 2023 10:28:14 -0600 Subject: [PATCH] Remove option to message user from STING workflows (#47) --- src/i18n/de.json | 2 -- src/i18n/en.json | 2 -- src/i18n/es.json | 2 -- src/social/components/Sting/StingModal.tsx | 15 ++------------- 4 files changed, 2 insertions(+), 19 deletions(-) diff --git a/src/i18n/de.json b/src/i18n/de.json index 39a28c42d..5942e7eab 100644 --- a/src/i18n/de.json +++ b/src/i18n/de.json @@ -439,8 +439,6 @@ "sting.notesPlaceholder": "Why is this post STING-related? (Required)", "sting.notesAreRequired": "Notes are required.", "sting.coachNotes": "Coach Notes", - "sting.messagePlaceholder": "Enter a message to be sent to the user from the STING Guide after being transferred. (Optional)", - "sting.messageToSend": "Message to send to user", "sting.addNewNote": "Add New Note", "sting.transferUser": "Transfer User to STING Dash" } diff --git a/src/i18n/en.json b/src/i18n/en.json index 59ddd5f18..74934872f 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -439,8 +439,6 @@ "sting.notesPlaceholder": "Why is this post STING-related? (Required)", "sting.notesAreRequired": "Notes are required.", "sting.coachNotes": "Coach Notes", - "sting.messagePlaceholder": "Enter a message to be sent to the user from the STING Guide after being transferred. (Optional)", - "sting.messageToSend": "Message to send to user", "sting.addNewNote": "Add New Note", "sting.transferUser": "Transfer User to STING Dash" } diff --git a/src/i18n/es.json b/src/i18n/es.json index 42f75225b..487bc12fc 100644 --- a/src/i18n/es.json +++ b/src/i18n/es.json @@ -439,8 +439,6 @@ "sting.notesPlaceholder": "Why is this post STING-related? (Required)", "sting.notesAreRequired": "Notes are required.", "sting.coachNotes": "Coach Notes", - "sting.messagePlaceholder": "Enter a message to be sent to the user from the STING Guide after being transferred. (Optional)", - "sting.messageToSend": "Message to send to user", "sting.addNewNote": "Add New Note", "sting.transferUser": "Transfer User to STING Dash" } diff --git a/src/social/components/Sting/StingModal.tsx b/src/social/components/Sting/StingModal.tsx index 3ae9cb656..69828d232 100644 --- a/src/social/components/Sting/StingModal.tsx +++ b/src/social/components/Sting/StingModal.tsx @@ -52,10 +52,10 @@ export const StingModal = ({ userAccessCode, pathToContent, isOpen, onClose }: S reset(); }, [isOpen]); - const onSubmit = async (data: { messageToSend: string | undefined; coachNotes: string }) => { + const onSubmit = async (data: { coachNotes: string }) => { let canAttachNote = true; if (!userInStingDash) { - canAttachNote = await transferUserToStingCallback(userAccessCode, data.messageToSend); + canAttachNote = await transferUserToStingCallback(userAccessCode); } if (canAttachNote) { const realPath = pathToContent.replace( @@ -107,17 +107,6 @@ export const StingModal = ({ userAccessCode, pathToContent, isOpen, onClose }: S /> - {!userInStingDash && ( - - - - -