Feat: use react component for dialogs instead of window alerts
See original GitHub issueIs your feature request related to a problem? Please describe.
There are several places in the code that use window.confirm/alert
for dialogs (one example is when uploading an existing media file).
I think we should should consider switching to a friendlier UI (maybe we can use the existing redux-notifications
package we’re using for status messages).
Describe the solution you’d like
Use a react component for dialogs instead of window
dialogs.
Describe alternatives you’ve considered We can write our own modals but I’m guessing there should be a library for that.
Additional context Related to this https://github.com/netlify/netlify-cms/issues/2822
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
The neatest way to handle alert dialogs in React
The neatest way to handle alert dialogs in React ; const isConfirmed = ; const YourAwesomeComponent = ; export const useConfirmationService ...
Read more >Build Your Own Confirm Dialog & Notification Material UI
Build Confirm Dialog & Notification with React Material UI.In this react material UI tutorial, we discuss how to create custom confirm ...
Read more >Alert: implementation · Issue #1026 · necolas/react-native-web
Providing no buttons argument manifests a basic alert. Providing buttons presents a dialogue. The fourth options argument is not implemented as ...
Read more >How to Display Modal Dialog in React with react-modal
In this article, we will learn how to display a modal dialog in React applications using react-modal. We will see how to configure...
Read more >React Dialog component - Material UI - MUI
Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks. A Dialog is a type of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @Mack241, see my comment in https://github.com/netlify/netlify-cms/pull/6137#pullrequestreview-859639958 about using hooks in the CMS
I think we’ll be good with using an external package for this, as long as it’s not deprecated/archived and gets security updates