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

Setup Snackbar Provider #24

Merged
merged 6 commits into from
Aug 6, 2024
Merged

Setup Snackbar Provider #24

merged 6 commits into from
Aug 6, 2024

Conversation

djnunez-aot
Copy link
Collaborator

-Setup zustand snackbar provider
-Setup notify function

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 15.00000% with 17 lines in your changes missing coverage. Please review.

Project coverage is 31.32%. Comparing base (795249b) to head (51ef670).

Files Patch % Lines
...bmit-web/src/routes/_authenticated/users/index.tsx 0.00% 8 Missing ⚠️
...-web/src/components/Shared/Popups/snackbarStore.ts 22.22% 7 Missing ⚠️
...src/components/Shared/Modals/ConfirmationModal.tsx 33.33% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #24      +/-   ##
===========================================
+ Coverage    30.37%   31.32%   +0.95%     
===========================================
  Files           27       27              
  Lines          270      265       -5     
  Branches        52       49       -3     
===========================================
+ Hits            82       83       +1     
+ Misses         188      182       -6     
Flag Coverage Δ
submit-web 31.32% <15.00%> (+0.95%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}));

// Helper function to notify with different severities
export const notify = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

beautiful

};

const ConfirmationDialog: React.FC<ConfirmationDialogProps> = ({ isOpen, title, description, onConfirm, onCancel }) => {
const ConfirmationDialog: React.FC<ConfirmationDialogProps> = ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we be using this component here https://mui.com/material-ui/react-snackbar/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can

@djnunez-aot djnunez-aot requested a review from jadmsaadaot August 6, 2024 16:59
@jadmsaadaot jadmsaadaot merged commit 5760575 into develop Aug 6, 2024
8 of 9 checks passed
@djnunez-aot djnunez-aot deleted the zustand-setup branch August 26, 2024 17:57
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.

2 participants