-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update Toast
component
#209
Conversation
🦋 Changeset detectedLatest commit: c31b456 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploy preview for ui-storybook ready! ✅ Preview Built with commit c31b456. |
export { default as toast } from "react-hot-toast"; | ||
export type { ToastPosition } from "react-hot-toast"; | ||
// export backfill of sonner functions | ||
export { toast } from "sonner"; |
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.
Maybe export ToastT
interface (potentially renaming because that's not a great name) here as well?
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.
Actually, I guess we're exporting implementation types. So nevermind about this my thoughts have changed!
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.
Works great, minor code tweak suggestions up to you to decide to implement or not. Thanks!!
Description
Task link: https://trello.com/c/cBg7CvcW/334-update-toast-to-use-sonner
Updated
Toast
component(s) to use sonner instead of react hot toast. Added primitives forToast
building blocks.Test Steps
react-hot-toast
in codebase.