Skip to content
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

Use toast notification instead of modal for warning/success messages #397

Merged
merged 8 commits into from
Jan 24, 2023

Conversation

josephfrazier
Copy link
Owner

@josephfrazier josephfrazier commented Jan 21, 2023

See https://reportedcab.slack.com/archives/C9VNM3DL4/p1672888880155269:

What do you think of replacing the react modals with alerts? instead
of dismissing the popup it would be some text that disappears after a
few seconds

I pinned to react-toastify version 9.0.3 due to this issue: fkhadra/react-toastify#775

See here for a demo of react-toastify: https://fkhadra.github.io/react-toastify/introduction

Example images:

mobile alert/warning:
image

desktop alert/warning: image

image

desktop success: image

I pinned to version 9.0.3 due to this issue: fkhadra/react-toastify#775
See https://reportedcab.slack.com/archives/C9VNM3DL4/p1672888880155269:

> What do you think of replacing the react modals with alerts? instead
> of dismissing the popup it would be some text that disappears after a
> few seconds

Unfortunately, the style of the notifications isn't currently correct, see below screenshot.
@josephfrazier josephfrazier temporarily deployed to reported-web-joseph-toa-3y9ovi January 21, 2023 21:51 Inactive
@josephfrazier josephfrazier temporarily deployed to reported-web-joseph-toa-3y9ovi January 24, 2023 00:15 Inactive
@josephfrazier josephfrazier temporarily deployed to reported-web-joseph-toa-3y9ovi January 24, 2023 00:20 Inactive
@josephfrazier josephfrazier changed the title Use toast notification instead of modal for warning messages Use toast notification instead of modal for warning/success messages Jan 24, 2023
@josephfrazier josephfrazier temporarily deployed to reported-web-joseph-toa-3y9ovi January 24, 2023 00:23 Inactive
@josephfrazier josephfrazier marked this pull request as ready for review January 24, 2023 00:27
@josephfrazier josephfrazier temporarily deployed to reported-web-joseph-toa-3y9ovi January 24, 2023 00:36 Inactive
@josephfrazier josephfrazier merged commit 847383d into main Jan 24, 2023
@josephfrazier josephfrazier deleted the joseph/toast.notification branch January 24, 2023 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant