diff --git a/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte b/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte index 5fa639cba9..c1de6ffcba 100644 --- a/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte +++ b/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte @@ -9,6 +9,7 @@ export let directories: Directory[]; export let level = 0; export let containerWidth: number | undefined; + export let value: string; let radioInputs: HTMLInputElement[] = []; let thumbnailStates = directories.map(() => ({ @@ -16,12 +17,12 @@ error: false })); - function handleThumbnailLoad(index) { + function handleThumbnailLoad(index: number) { thumbnailStates[index].loading = false; thumbnailStates[index].error = false; } - function handleThumbnailError(index) { + function handleThumbnailError(index: number) { thumbnailStates[index].loading = false; thumbnailStates[index].error = true; } @@ -39,7 +40,7 @@ {@const hasChildren = !!children?.length} {@const thumb = thumbnailUrl} -