From 9af889a9bb028bed3b48babee15f286d03089d70 Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Fri, 30 Jan 2026 22:21:24 +0800 Subject: [PATCH] fix(web): import toast from @multica/ui instead of bare sonner sonner is a dependency of @multica/ui, not web. Re-export toast from the ui sonner module and update the import path in chat.tsx. Co-Authored-By: Claude Opus 4.5 --- apps/web/app/components/chat.tsx | 2 +- packages/ui/src/components/ui/sonner.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/app/components/chat.tsx b/apps/web/app/components/chat.tsx index 279dc3d4..80775fc7 100644 --- a/apps/web/app/components/chat.tsx +++ b/apps/web/app/components/chat.tsx @@ -11,7 +11,7 @@ import { useScrollFade } from "../hooks/use-scroll-fade"; import { cn } from "@multica/ui/lib/utils"; import { HugeiconsIcon } from "@hugeicons/react"; import { Copy01Icon, CheckmarkCircle02Icon } from "@hugeicons/core-free-icons"; -import { toast } from "sonner"; +import { toast } from "@multica/ui/components/ui/sonner"; export function Chat() { const deviceId = useDeviceId(); diff --git a/packages/ui/src/components/ui/sonner.tsx b/packages/ui/src/components/ui/sonner.tsx index e81f8388..9b080962 100644 --- a/packages/ui/src/components/ui/sonner.tsx +++ b/packages/ui/src/components/ui/sonner.tsx @@ -1,7 +1,7 @@ "use client" import { useTheme } from "next-themes" -import { Toaster as Sonner, type ToasterProps } from "sonner" +import { Toaster as Sonner, toast, type ToasterProps } from "sonner" import { HugeiconsIcon } from "@hugeicons/react" import { CheckmarkCircle02Icon, InformationCircleIcon, Alert02Icon, MultiplicationSignCircleIcon, Loading03Icon } from "@hugeicons/core-free-icons" @@ -47,4 +47,4 @@ const Toaster = ({ ...props }: ToasterProps) => { ) } -export { Toaster } +export { Toaster, toast }