feat: enhance Sonner component with toast functionality

- Imported `toast` from 'sonner' to enable toast notifications.
- Updated styles for the toast icon to improve visual consistency and responsiveness.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-30 21:29:42 +08:00
parent b9d06fe6f2
commit d9e09b375b

View File

@@ -34,7 +34,8 @@ const toastStyles = {
flex-1 min-w-0
`,
icon: tw`
flex-shrink-0 mt-0.5 size-5
shrink-0 mt-0.5 size-5
relative
[li[data-type="success"]_&]:text-green
[li[data-type="error"]_&]:text-red
[li[data-type="warning"]_&]:text-orange