fix eslint errors
This commit is contained in:
@@ -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={[
|
||||
|
||||
Reference in New Issue
Block a user