Skip to content

Commit 34e97f0

Browse files
committed
ref: remove showLabel (it looks fine)
1 parent c1caafc commit 34e97f0

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

static/app/components/forms/controls/rangeSlider/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ type SliderProps = {
7676
* Show input control for custom values
7777
*/
7878
showCustomInput?: boolean;
79-
/**
80-
* Show label with current value
81-
*/
82-
showLabel?: boolean;
8379
step?: number;
8480
};
8581

@@ -97,7 +93,6 @@ export function RangeSlider({
9793
onChangeEnd,
9894
ref,
9995
disabledReason,
100-
showLabel = true,
10196
...props
10297
}: SliderProps) {
10398
const [sliderValue, setSliderValue] = useState(
@@ -182,7 +177,7 @@ export function RangeSlider({
182177

183178
return (
184179
<div className={className} ref={ref}>
185-
{!showCustomInput && showLabel && <SliderLabel>{labelText}</SliderLabel>}
180+
{!showCustomInput && <SliderLabel>{labelText}</SliderLabel>}
186181
<Tooltip title={disabledReason} disabled={!disabled} skipWrapper isHoverable>
187182
<SliderAndInputWrapper showCustomInput={showCustomInput}>
188183
<StyledSlider
@@ -197,7 +192,6 @@ export function RangeSlider({
197192
value={sliderValue}
198193
aria-valuetext={labelText}
199194
aria-label={props['aria-label']}
200-
formatLabel={showLabel ? undefined : () => null}
201195
/>
202196
{showCustomInput && (
203197
<StyledInput

static/gsApp/views/amCheckout/components/volumeSliders.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ export function VolumeSliders({
184184
</div>
185185
</SpaceBetweenGrid>
186186
<RangeSlider
187-
showLabel={false}
188187
name={category}
189188
id={sliderId}
190189
aria-label={

0 commit comments

Comments
 (0)