Studio: use the shared spinner for loading toasts
The loading toast used a different spinner from the model download toast, so 'Unloading model' and 'Downloading model' looked inconsistent. Switch the sonner loading icon to the app-wide Spinner so they match.
This commit is contained in:
parent
4176448fb8
commit
3389671c86
1 changed files with 3 additions and 8 deletions
|
|
@ -5,10 +5,10 @@ import {
|
|||
Alert02Icon,
|
||||
CheckmarkCircle02Icon,
|
||||
InformationCircleIcon,
|
||||
Loading03Icon,
|
||||
MultiplicationSignCircleIcon,
|
||||
} from "@hugeicons/core-free-icons";
|
||||
import { HugeiconsIcon } from "@hugeicons/react";
|
||||
import { Spinner } from "@/components/ui/spinner";
|
||||
import { useTheme } from "next-themes";
|
||||
import { Toaster as Sonner, type ToasterProps } from "sonner";
|
||||
|
||||
|
|
@ -51,13 +51,8 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|||
className="size-4"
|
||||
/>
|
||||
),
|
||||
loading: (
|
||||
<HugeiconsIcon
|
||||
icon={Loading03Icon}
|
||||
strokeWidth={2}
|
||||
className="size-4 animate-spin"
|
||||
/>
|
||||
),
|
||||
// App-wide arc spinner so loading toasts match the "Downloading model" toast.
|
||||
loading: <Spinner className="size-4 text-muted-foreground" />,
|
||||
}}
|
||||
style={
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue