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

Skapa-Alerts-Komponenten#11 #56

Merged
merged 9 commits into from
Sep 8, 2022
Merged

Skapa-Alerts-Komponenten#11 #56

merged 9 commits into from
Sep 8, 2022

Conversation

Ola-Larsson
Copy link
Collaborator

Skapat en snackbar context, som visar medelanden man själv kan ställa in, som inte pausar det andra i UI

@netlify
Copy link

netlify bot commented Sep 7, 2022

Deploy Preview for astonishing-pegasus-9644d9 ready!

Name Link
🔨 Latest commit 3f5ccf7
🔍 Latest deploy log https://app.netlify.com/sites/astonishing-pegasus-9644d9/deploys/63199636a400580008f0f114
😎 Deploy Preview https://deploy-preview-56--astonishing-pegasus-9644d9.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment on lines 7 to 15
<Snackbar open={snack.open} autoHideDuration={6000} onClose={handleClose}>
<Alert
onClose={handleClose}
severity={snack.color}
sx={{ width: "100%" }}
>
{snack.message}
</Alert>
</Snackbar>
Copy link
Owner

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tror detta funkar

Copy link
Owner

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.

Copy link
Collaborator Author

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 👍

Copy link
Owner

@io-berg io-berg left a comment

Choose a reason for hiding this comment

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

Look good

@io-berg io-berg merged commit dac513c into main Sep 8, 2022
@io-berg io-berg deleted the Skapa-Alerts-Komponenten#11 branch September 8, 2022 07:24
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