diff --git a/apps/marginfi-v2-ui/src/components/common/Toast/MultiStepToast.tsx b/apps/marginfi-v2-ui/src/components/common/Toast/MultiStepToast.tsx index bf6df26980..eb87c9975b 100644 --- a/apps/marginfi-v2-ui/src/components/common/Toast/MultiStepToast.tsx +++ b/apps/marginfi-v2-ui/src/components/common/Toast/MultiStepToast.tsx @@ -1,5 +1,6 @@ -import { FC } from "react"; -import { IconLoader, IconCheck, IconAlertTriangle, IconClockHour4 } from "~/components/ui/icons"; +import { IconLoader, IconCheck, IconAlertTriangle } from "~/components/ui/icons"; + +import { cn } from "~/utils"; export interface MultiStepToastProps { title: string; @@ -17,17 +18,23 @@ export interface ToastStepWithStatus extends ToastStep { message?: string; } -export const MultiStepToast: FC = ({ title, steps }) => { +export const MultiStepToast = ({ title, steps }: MultiStepToastProps) => { return (

{title}

{steps.map((step, index) => { - if (step.status === "todo" || step.status === "canceled") return null; return ( -
+
-

+

{steps.length > 0 && <>{index + 1}}. {step.label}

{step.status === "success" && }