From 3de5ad29dc4a59fa4dd6d5c2dda0ff1c13082211 Mon Sep 17 00:00:00 2001 From: Viktor Riabkov Date: Thu, 4 Apr 2024 22:42:41 +0800 Subject: [PATCH] Added data-testid attributes for slider component --- src/shared/ui/Items/Slider/index.tsx | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/shared/ui/Items/Slider/index.tsx b/src/shared/ui/Items/Slider/index.tsx index 15e95d1d7..8b37d6af6 100644 --- a/src/shared/ui/Items/Slider/index.tsx +++ b/src/shared/ui/Items/Slider/index.tsx @@ -58,7 +58,12 @@ export const SliderItemBase = (props: Props) => { const selectedValueIndex = marksAndLabelsList.findIndex((item) => item.value === Number(value)); return ( - + { '& > img': { borderRadius: '8px', overflow: 'hidden' }, }} > - {minImage && } + {minImage && } {minLabel && ( - + {minLabel} )} @@ -144,10 +153,14 @@ export const SliderItemBase = (props: Props) => { '& > img': { borderRadius: '8px', overflow: 'hidden' }, }} > - {maxImage && } + {maxImage && } {maxLabel && ( - + {maxLabel} )}