Skip to content

Commit

Permalink
fix: remove not needed code in dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LudovicMalot committed Jun 29, 2024
1 parent edfa0a0 commit b57c1cd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
import { cn } from '$lib/utils';
import { Check } from 'lucide-svelte';
type $$Props = DropdownMenuPrimitive.ItemProps & {
inset?: boolean;
checked?: boolean;
};
type $$Events = DropdownMenuPrimitive.ItemEvents;
let className: $$Props['class'] = undefined;
export let inset: $$Props['inset'] = undefined;
export let checked: $$Props['checked'] = false;
export { className as class };
</script>

Expand All @@ -32,8 +29,4 @@
on:pointermove
>
<slot />
{#if checked}
{console.log('checked', checked)}
<Check class="ml-2 w-4 text-primary" />
{/if}
</DropdownMenuPrimitive.Item>

0 comments on commit b57c1cd

Please sign in to comment.