From 04602f037240b9a559533aa2d11f6fcadc9b0c74 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 30 Jan 2026 00:52:42 +0300 Subject: [PATCH] feat(ComboControl): use IconButton component --- .../ui/ComboControl/ComboControl.svelte | 60 ++++--------------- 1 file changed, 13 insertions(+), 47 deletions(-) diff --git a/src/shared/ui/ComboControl/ComboControl.svelte b/src/shared/ui/ComboControl/ComboControl.svelte index f171cd5..73758e5 100644 --- a/src/shared/ui/ComboControl/ComboControl.svelte +++ b/src/shared/ui/ComboControl/ComboControl.svelte @@ -24,6 +24,7 @@ import { import MinusIcon from '@lucide/svelte/icons/minus'; import PlusIcon from '@lucide/svelte/icons/plus'; import type { ChangeEventHandler } from 'svelte/elements'; +import IconButton from '../IconButton/IconButton.svelte'; interface ComboControlProps { /** @@ -79,34 +80,16 @@ const handleSliderChange = (newValue: number) => { - + {#snippet icon({ className })} + + {/snippet} + {#snippet child({ props })} @@ -144,33 +127,16 @@ const handleSliderChange = (newValue: number) => { - + {#snippet icon({ className })} + + {/snippet} + {#if controlLabel}