diff --git a/src/components/Toast/Toast.tsx b/src/components/Toast/Toast.tsx index 0e29a528..dc4b2e25 100644 --- a/src/components/Toast/Toast.tsx +++ b/src/components/Toast/Toast.tsx @@ -42,21 +42,12 @@ export function ToastContent(props: ToastContentProps) { const { t, ...rest } = props; const toastIcons = { - success: , - error: , - loading: , - blank: , + success: , + error: , + loading: , + blank: , custom: t.icon ?? , }; - - const typeToTextClass = { - success: 'text-s-success', - error: 'text-s-error', - loading: 'text-f-primary', - blank: 'text-f-primary', - custom: 'text-f-primary', - }; - let content; if (typeof t.message === 'string') { content = t.message; @@ -65,8 +56,6 @@ export function ToastContent(props: ToastContentProps) { content = (t.message as CallableFunction)().props.children; } - const textClassName = typeToTextClass[t.type]; - return (