diff --git a/packages/ui/components/toast/showToast.tsx b/packages/ui/components/toast/showToast.tsx index 3db4ada290..062888525e 100644 --- a/packages/ui/components/toast/showToast.tsx +++ b/packages/ui/components/toast/showToast.tsx @@ -13,17 +13,19 @@ type IToast = { export const SuccessToast = ({ message, onClose, toastId }: IToast) => ( ); @@ -31,17 +33,19 @@ export const SuccessToast = ({ message, onClose, toastId }: IToast) => ( export const ErrorToast = ({ message, onClose, toastId }: IToast) => ( ); @@ -49,17 +53,19 @@ export const ErrorToast = ({ message, onClose, toastId }: IToast) => ( export const WarningToast = ({ message, onClose, toastId }: IToast) => ( ); @@ -71,7 +77,6 @@ type ToastVariants = "success" | "warning" | "error"; export function showToast( message: string, variant: ToastVariants, - // Options or duration (duration for backwards compatibility reasons) options: number | ExternalToast = TOAST_VISIBLE_DURATION ) { const _options: ExternalToast = typeof options === "number" ? { duration: options } : options;