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

refactor: antdv5 notfications #2161

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Feb 1, 2023

Fixes #2017

There are many occurrences of using notifications in the app, but there are two types of places that use them, normal components and redux actions. To resolve the issue it is necessary to use a hook, and hooks do not work inside actions, so in these cases, passing it as a callback.

The first video shows notifications used from normal components and the second video is with the redux functions, there are a few occurrences. Edited the code to record the second video and force the errors to appear.

  1. https://www.loom.com/share/3eaafde86ce44013a36e5c15d1bb9847

  2. https://www.loom.com/share/0164490fe39d449ab12d02c02f7b57de

Co-authored-by: Nitesh Singh <nitesh.singh@gitstart.dev>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: niteshsingh1357 <niteshsingh1357@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@palashgdev palashgdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's create a single instance of notification in form of Context Provider and use it across whole app

Thanks

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.

antdv5 notfication styles in dark mode
2 participants