From e3a0d4bf998b5c07ffe81bab3bed41f8b45a3e9c Mon Sep 17 00:00:00 2001 From: StylesTrip Date: Tue, 19 Mar 2024 22:59:34 -0400 Subject: [PATCH] Removing valueLabelFormat so that tooltip thumb label displays the same as the value text --- 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 (