Skip to content

Commit

Permalink
Change name of SliderWithNowMarker component
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Feb 8, 2024
1 parent fb58b70 commit a522da9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/mainsite/components/Slider/SliderWithNowMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ interface Props {
nowValue?: number;
}

const THUMB_WIDTH = 14;

/**
* The browser's native slider is difficult to style and leads
* to very small tap targets on mobile, so instead we render a
* transparent slider and use a custom UI in front of it.
* Slider extended with small marker to indicate the current "real world" value of a parameter for future projections.
*/
const Slider: React.FC<Props> = ({
const SliderWithNowMarker: React.FC<Props> = ({
min,
max,
onChange,
Expand Down Expand Up @@ -67,4 +64,4 @@ const Slider: React.FC<Props> = ({
);
};

export default Slider;
export default SliderWithNowMarker;

0 comments on commit a522da9

Please sign in to comment.