diff --git a/components/Toast.tsx b/components/Toast.tsx index a68e2f1..38f9f35 100644 --- a/components/Toast.tsx +++ b/components/Toast.tsx @@ -1,23 +1,25 @@ "use client"; import { useEffect, useState } from "react"; -import { CheckCircle2, X, AlertTriangle } from "lucide-react"; +import { CheckCircle2, X } from "lucide-react"; -// A minimal toast. Deliberately not a dependency: the app needs exactly one, and a -// full toast library would ship far more surface than that justifies. +// A minimal toast for a confirmed import. Deliberately not a dependency: the app needs +// exactly one, and a full toast library would ship far more surface than that justifies. +// +// Solid teal rather than a new green: #00798C is already this app's success colour (the +// "All booked" badge, the income tiles, the import button), so it reads as success without +// introducing a hue outside the palette. // // Announced politely rather than assertively — a confirmation is not urgent, and it // should not interrupt whatever a screen reader is currently saying. export function Toast({ message, detail, - tone = "success", onDismiss, duration = 6000, }: { message: string; detail?: string; - tone?: "success" | "error"; onDismiss: () => void; duration?: number; }) { @@ -25,7 +27,7 @@ export function Toast({ const close = () => { setLeaving(true); - setTimeout(onDismiss, 200); // let the fade-out run before unmounting + setTimeout(onDismiss, 200); // let the transition run before unmounting }; useEffect(() => { @@ -38,39 +40,26 @@ export function Toast({