fix eslint errors

This commit is contained in:
Elijah Duffy
2025-07-11 11:55:22 -07:00
parent 23c0236596
commit f7e46077e3
8 changed files with 26 additions and 12 deletions

View File

@@ -2,9 +2,7 @@
export type ActionSelectOption = {
/** value is a convenience field, it has no internal use */
value?: string;
icon?:
| { component: Component; props: Record<string, any> }
| Snippet<[opt: ActionSelectOption]>;
icon?: IconDef | Snippet<[opt: ActionSelectOption]>;
label: string | Snippet<[opt: ActionSelectOption]>;
disabled?: boolean;
onchoose?: (opt: ActionSelectOption) => void;
@@ -13,11 +11,12 @@
<script lang="ts">
import { Select } from 'melt/builders';
import { tick, type Component, type Snippet } from 'svelte';
import { tick, type Snippet } from 'svelte';
import Label from './Label.svelte';
import Button from './Button.svelte';
import { CaretDown, Check } from 'phosphor-svelte';
import type { ClassValue } from 'svelte/elements';
import type { IconDef } from './util';
interface Props {
label?: string;
@@ -109,7 +108,7 @@
{...select.content}
class={['border-sui-accent flex flex-col gap-1 rounded-xl border p-2 shadow-md']}
>
{#each options as option}
{#each options as option (option.label)}
<div
{...select.getOption(option, typeof option.label === 'string' ? option.label : undefined)}
class={[