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: toast #991

Merged
merged 9 commits into from
Oct 1, 2024
Merged

feat: toast #991

merged 9 commits into from
Oct 1, 2024

Conversation

RobChangCA
Copy link
Collaborator

@RobChangCA RobChangCA commented Sep 27, 2024

Pull Request Checklist

Description

Adds a toast component to display a success / error when transferring and NFT.
Screenshot 2024-09-27 at 6 04 12 PM

Testing steps

Attempt to transfer an NFT, on success you should see a green toast appear on top of the white nav bar.
You can click the X next to the toast to dismiss it early. It will naturally dismiss after 4 seconds.
This toast is not themeable as the nav bar is always white.


PR-Codex overview

This PR introduces a Toast notification system using @radix-ui/react-toast. It adds a ToastProvider, updates the UI components to utilize the toast functionality, and implements animations for toast visibility.

Detailed summary

  • Added @radix-ui/react-toast dependency.
  • Created ToastProvider in ToastProvider.tsx.
  • Implemented useToast hook in useToast.tsx.
  • Added Toast component for displaying notifications.
  • Integrated toast notifications in MintCard for success/error messages.
  • Added toast animations in globals.css.
  • Created XIcon component for closing the toast.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ❌ Failed (Inspect) Oct 1, 2024 6:17pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 6:17pm

@rthomare rthomare merged commit 6bd4109 into main Oct 1, 2024
5 of 6 checks passed
@rthomare rthomare deleted the rob/toast branch October 1, 2024 18:25
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.

3 participants