📦 Update context-menu-checkbox-item to use lucide-svelte `CheckIcon`

This commit is contained in:
pheralb 2024-08-26 17:00:09 +01:00
parent 45e84ae288
commit 6cb2e3944c

View File

@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import { ContextMenu as ContextMenuPrimitive } from 'bits-ui'; import { ContextMenu as ContextMenuPrimitive } from 'bits-ui';
import Check from 'svelte-radix/Check.svelte'; import { CheckIcon } from 'lucide-svelte';
import { cn } from '@/utils/cn'; import { cn } from '@/utils/cn';
type $$Props = ContextMenuPrimitive.CheckboxItemProps; type $$Props = ContextMenuPrimitive.CheckboxItemProps;
@ -28,7 +28,7 @@
> >
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center"> <span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<ContextMenuPrimitive.CheckboxIndicator> <ContextMenuPrimitive.CheckboxIndicator>
<Check class="h-4 w-4" /> <CheckIcon class="h-4 w-4" />
</ContextMenuPrimitive.CheckboxIndicator> </ContextMenuPrimitive.CheckboxIndicator>
</span> </span>
<slot /> <slot />