File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
app/components/forms/controls/rangeSlider
gsApp/views/amCheckout/components Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments