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

feat: add error and success messages on edit page #227

Merged
merged 12 commits into from
Nov 18, 2024

Conversation

JoarHansson
Copy link
Collaborator

No description provided.

replace the error handling with useStates for error and success and conditional Alert component.
- less code is needed in the components to use notifications for loading/success/error.
- notifications will be consistent across the app and style/settings can be easily changed in one place.
- a tsx file was needed to have the Icon component in the notifications. -> src/lib/notifications.tsx
its now handled inline in the EditRecipeForm component
there now rendered in the EditRecipeForm component instead
and change title placement + content ({recipe.title} instead of "Edit Recipe")
- zIndex:1000 made it appear on top of dropdowns/drawers
  -> zIndex:100
- small edit of margins
@JoarHansson JoarHansson linked an issue Nov 18, 2024 that may be closed by this pull request
@sirisayshello sirisayshello merged commit 6ad3e68 into main Nov 18, 2024
1 check passed
@sirisayshello sirisayshello deleted the 182-feat-error-and-success-messages-on-edit-page branch November 18, 2024 09:20
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.

feat: error and success messages on edit page
2 participants