From b96215e09b600b68a5c03821c83ef12c3095943c Mon Sep 17 00:00:00 2001 From: Ryan Turinsky Date: Wed, 20 Mar 2024 05:39:05 -0400 Subject: [PATCH] [docs][material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) --- docs/data/material/components/slider/DiscreteSliderValues.js | 5 ----- .../data/material/components/slider/DiscreteSliderValues.tsx | 5 ----- .../components/slider/DiscreteSliderValues.tsx.preview | 1 - 3 files changed, 11 deletions(-) diff --git a/docs/data/material/components/slider/DiscreteSliderValues.js b/docs/data/material/components/slider/DiscreteSliderValues.js index 7a801e3ad05619..82aa964ab98eb4 100644 --- a/docs/data/material/components/slider/DiscreteSliderValues.js +++ b/docs/data/material/components/slider/DiscreteSliderValues.js @@ -25,17 +25,12 @@ function valuetext(value) { return `${value}°C`; } -function valueLabelFormat(value) { - return marks.findIndex((mark) => mark.value === value) + 1; -} - export default function DiscreteSliderValues() { return ( mark.value === value) + 1; -} - export default function DiscreteSliderValues() { return (