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

Update Toast component #209

Merged
merged 6 commits into from
Jan 7, 2024
Merged

Update Toast component #209

merged 6 commits into from
Jan 7, 2024

Conversation

hobbescodes
Copy link
Contributor

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 for Toast building blocks.

Test Steps

  1. Verify that functionality works and styles look good in both SB and downstream example apps.
  2. Verify that there are no mentions of react-hot-toast in codebase.
  3. Verify that applicable tests still pass.

@hobbescodes hobbescodes requested a review from coopbri January 7, 2024 14:31
Copy link

changeset-bot bot commented Jan 7, 2024

🦋 Changeset detected

Latest commit: c31b456

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@animareflection/ui Minor

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

@hobbescodes hobbescodes requested a review from Twonarly1 January 7, 2024 14:31
Copy link
Contributor

github-actions bot commented Jan 7, 2024

Deploy preview for ui-storybook ready!

✅ Preview
https://ui-storybook-ri0969nwp-animareflection.vercel.app

Built with commit c31b456.
This pull request is being automatically deployed with vercel-action

export { default as toast } from "react-hot-toast";
export type { ToastPosition } from "react-hot-toast";
// export backfill of sonner functions
export { toast } from "sonner";
Copy link
Contributor

@coopbri coopbri Jan 7, 2024

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?

Copy link
Contributor

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!

Copy link
Contributor

@coopbri coopbri left a 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!!

@hobbescodes hobbescodes merged commit 3aad5ce into master Jan 7, 2024
@hobbescodes hobbescodes deleted the chore/refactor-toast branch January 7, 2024 15:15
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