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

chore: export toast from react toastify in payload #8438

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

paulpopus
Copy link
Contributor

Export toast from react-toastify directly as to avoid situations where there could be a module mismatch when trying to use toast in custom components.

This will make toast usable from

import { toast } from 'payload/components/elements'

@paulpopus paulpopus merged commit 17fc2d1 into main Sep 27, 2024
35 checks passed
@paulpopus paulpopus deleted the chore/export-toast-from-react-toastify-in-payload branch September 27, 2024 15:45
Copy link

🚀 This is included in version v2.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants