Fix animation on iOS

This commit is contained in:
Eric Bailey
2025-08-13 14:49:58 -05:00
committed by Samuel Newman
parent dbcef53e70
commit 185840d389
+9 -10
View File
@@ -11,19 +11,18 @@ function ToastOuter({children}: {children: React.ReactNode}) {
}
export function ToastOutlet() {
return (
<Toaster
pauseWhenPageIsHidden
gap={a.gap_sm.gap}
ToastWrapper={ToastOuter}
/>
)
return <Toaster pauseWhenPageIsHidden gap={a.gap_sm.gap} />
}
export const toast: ToastApi = {
show(props) {
sonner.custom(<Toast content={props.content} type={props.type} />, {
duration: props.duration ?? DEFAULT_TOAST_DURATION,
})
sonner.custom(
<ToastOuter>
<Toast content={props.content} type={props.type} />
</ToastOuter>,
{
duration: props.duration ?? DEFAULT_TOAST_DURATION,
},
)
},
}