From 1b0451faffcf2dd14a2741e17c4b98a70c6beb0f Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 27 Feb 2026 12:46:52 +0300 Subject: [PATCH] chore: delete unused code --- .../Font/ui/FontListItem/FontListItem.svelte | 39 ------------------- src/shared/ui/Section/types.ts | 17 ++++++++ 2 files changed, 17 insertions(+), 39 deletions(-) delete mode 100644 src/entities/Font/ui/FontListItem/FontListItem.svelte create mode 100644 src/shared/ui/Section/types.ts diff --git a/src/entities/Font/ui/FontListItem/FontListItem.svelte b/src/entities/Font/ui/FontListItem/FontListItem.svelte deleted file mode 100644 index 9ea82c1..0000000 --- a/src/entities/Font/ui/FontListItem/FontListItem.svelte +++ /dev/null @@ -1,39 +0,0 @@ - - -
- {@render children?.(font)} -
diff --git a/src/shared/ui/Section/types.ts b/src/shared/ui/Section/types.ts new file mode 100644 index 0000000..8a99739 --- /dev/null +++ b/src/shared/ui/Section/types.ts @@ -0,0 +1,17 @@ +import type { Snippet } from 'svelte'; + +/** + * Type for callback function to notify when the title visibility status changes + * + * @param index - Index of the section + * @param isPast - Whether the section is past the current scroll position + * @param title - Snippet for a title itself + * @param id - ID of the section + * @returns Cleanup callback + */ +export type TitleStatusChangeHandler = ( + index: number, + isPast: boolean, + title?: Snippet<[{ className?: string }]>, + id?: string, +) => () => void;