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 <noreply@anthropic.com>
This commit is contained in:
parent
0975510956
commit
9af889a9bb
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue