-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FW-5023 Use new contact-us API #165
Conversation
src/components/WidgetAreaEdit/WidgetAreaEditPresentationSettingsPane.js
Outdated
Show resolved
Hide resolved
'We have encountered an unexpected error. Please report this to our Help Desk.', | ||
}) | ||
break | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need these error messages somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The useMutationWithNotification
dataHook will display a message and will also display the error sent from the backend. I believe it will display the following: "ERROR: Your email was NOT sent. {backend message}. Please try again. If the error persists please contact FirstVoices Support."
I would be happy to customize the error messages if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
70192a9
to
972e5a9
Compare
Kudos, SonarCloud Quality Gate passed! |
Description of Changes
This PR re-enables the contact-us widget and form using the new contact-us API.
If the user is not logged in the form fields will be hidden and text prompting the user to log in will be shown.
The edit/create widget pages will now show the list of addresses that the contact form will send emails to, as well as some text informing the user to contact support if they would like to update the list.
Checklist
Reviewers Should Do The Following:
Additional Notes
N/A