-
Notifications
You must be signed in to change notification settings - Fork 1
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
Skapa-Alerts-Komponenten#11 #56
Conversation
✅ Deploy Preview for astonishing-pegasus-9644d9 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
src/components/SnackBar.tsx
Outdated
<Snackbar open={snack.open} autoHideDuration={6000} onClose={handleClose}> | ||
<Alert | ||
onClose={handleClose} | ||
severity={snack.color} | ||
sx={{ width: "100%" }} | ||
> | ||
{snack.message} | ||
</Alert> | ||
</Snackbar> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Går det göra så att man kan ha flera snack sammtidigt? typ om man spammar add to cart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tror detta funkar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Läst lite mer om detta och dom säger att man inte skall använda flera snackbars..
mui/material-ui#1824
Så vi borde nog nöja oss med att bara ha en, my bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vi kan byta tillbaka isåfall. Jag tror inte att det ska vara ett problem. Fixar det 👍
Co-authored-by: Berg <[email protected]>
Co-authored-by: Berg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good
Skapat en snackbar context, som visar medelanden man själv kan ställa in, som inte pausar det andra i UI