Integrate Sonner for toasts (#8839)

* Integrate Sonner for toasts

* Fix animation on iOS

* Refactor API

* Update e2e file
This commit is contained in:
Eric Bailey
2025-08-14 09:51:40 -05:00
committed by GitHub
parent 221623f55a
commit 7b2e61bf4d
12 changed files with 163 additions and 385 deletions
+2 -6
View File
@@ -1,4 +1,4 @@
import {toast} from '#/components/Toast'
import * as toast from '#/components/Toast'
import {type ToastType} from '#/components/Toast/types'
/**
@@ -46,9 +46,5 @@ export function show(
type: ToastType | LegacyToastType = 'default',
): void {
const convertedType = convertLegacyToastType(type)
toast.show({
type: convertedType,
content: message,
a11yLabel: message,
})
toast.show(message, {type: convertedType})
}