Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: remove superfluous comments

Scott Wilson1daff7f73d0d
diff --git a/frontend/src/components/v3/generic/Toast/Toast.tsx b/frontend/src/components/v3/generic/Toast/Toast.tsx
index 698e5ba7b8..a26fce71e3 100644
--- a/frontend/src/components/v3/generic/Toast/Toast.tsx
+++ b/frontend/src/components/v3/generic/Toast/Toast.tsx
@@ -7,10 +7,7 @@ import {
} from "lucide-react";
import { Toaster as Sonner, type ToasterProps } from "sonner";
-// The v3 toast keeps a neutral container surface and carries intent through a colored icon and
-// a left accent strip in the status color, while the title and description stay neutral. sonner
-// is CSS-variable driven, so the shared surface is set via --normal-* and the per-type accent is
-// added through sonner's per-type classNames.
+
const Toaster = ({ ...props }: ToasterProps) => {
return (
<Sonner
@@ -27,26 +24,16 @@ const Toaster = ({ ...props }: ToasterProps) => {
}}
toastOptions={{
classNames: {
- // pointer-events-auto keeps the toast clickable over a modal (Radix sets
- // pointer-events:none outside itself); items-start aligns the icon with the title;
- // pl-5 clears the accent strip.
toast: "!pointer-events-auto !items-start !rounded-md !pl-5",
icon: "!mt-0.5",
title: "!text-sm !font-medium !text-foreground whitespace-pre-line",
description: "!text-xs !text-foreground/75 whitespace-pre-line",
- // Square close button seated inside the toast body at the top-right.
closeButton:
"!left-auto !right-2 !top-2 !transform-none !rounded-sm !border-transparent !bg-transparent !text-foreground/60 hover:!bg-foreground/10 hover:!text-foreground",
- // self-end seats the action at the bottom of the toast; sonner's margin-left:auto
- // pushes it right, so it lands bottom-right, clear of the top-right close button.
- // Styled to match the v3 outline Button variant.
actionButton:
"!self-end !rounded-sm !border !border-border !bg-transparent !text-foreground hover:!bg-foreground/10 hover:!border-foreground/20",
cancelButton:
"!self-end !rounded !border !border-border !bg-transparent !text-foreground/80 hover:!bg-foreground/10",
- // Status accent: a 4px strip painted as a hard-stop gradient so the card's radius
- // rounds the strip's outer corner while the gradient stop keeps the inner edge
- // straight (a left border would curve on the inside and look crescent-shaped).
success:
"!border-l-0 !bg-[linear-gradient(to_right,var(--color-success)_4px,transparent_4px)]",
info: "!border-l-0 !bg-[linear-gradient(to_right,var(--color-info)_4px,transparent_4px)]",