refactor: remove TriangleAlertIcon from various tool components

This commit is contained in:
Anish Sarkar 2026-03-21 02:09:52 +05:30
parent 9a750fba74
commit 0d47233580
7 changed files with 2 additions and 19 deletions

View file

@ -2,12 +2,10 @@
import { makeAssistantToolUI } from "@assistant-ui/react";
import {
CalendarX2Icon,
CalendarIcon,
ClockIcon,
MapPinIcon,
CornerDownLeftIcon,
TriangleAlertIcon,
} from "lucide-react";
import { useCallback, useEffect, useState } from "react";
import { Button } from "@/components/ui/button";
@ -215,7 +213,6 @@ function ApprovalCard({
{/* Header */}
<div className="flex items-start justify-between px-5 pt-5 pb-4 select-none">
<div className="flex items-center gap-2">
<CalendarX2Icon className="size-4 text-muted-foreground shrink-0" />
<div>
<p className="text-sm font-semibold text-foreground">
{decided === "reject"
@ -397,7 +394,6 @@ function NotFoundCard({ result }: { result: NotFoundResult }) {
<div className="my-4 max-w-lg overflow-hidden rounded-2xl border border-amber-500/50 bg-muted/30 select-none">
<div className="px-5 pt-5 pb-4">
<div className="flex items-center gap-2">
<TriangleAlertIcon className="size-4 text-amber-500 shrink-0" />
<p className="text-sm font-semibold text-amber-600 dark:text-amber-400">
Event not found
</p>
@ -415,7 +411,6 @@ function WarningCard({ result }: { result: WarningResult }) {
return (
<div className="my-4 max-w-lg overflow-hidden rounded-2xl border bg-muted/30 select-none">
<div className="flex items-start gap-3 border-b px-5 py-4">
<TriangleAlertIcon className="size-4 mt-0.5 shrink-0 text-amber-500" />
<p className="text-sm font-medium text-amber-600 dark:text-amber-500">Partial success</p>
</div>
<div className="px-5 py-4 space-y-2 text-xs">