Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(web): import toast from @multica/ui instead of bare sonner

Naiyuan Qing9af889a9bb02
diff --git a/apps/web/app/components/chat.tsx b/apps/web/app/components/chat.tsx
index 279dc3d414..80775fc7d2 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 e81f8388eb..9b08096250 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 }