diff --git a/src/components/slider.tsx b/src/components/slider.tsx index 24614d3..94bad55 100644 --- a/src/components/slider.tsx +++ b/src/components/slider.tsx @@ -1,5 +1,6 @@ import { Icon } from "@iconify/react"; import { + ClickAwayListener, Grid2 as Grid, IconButton, Slider as MuiSlider, @@ -9,7 +10,7 @@ import { Typography, TypographyProps, } from "@mui/material"; -import { useState } from "react"; +import { MouseEvent, useState } from "react"; export interface Props { value: number; @@ -36,7 +37,7 @@ export default function Slider({ }: Props) { const [anchorEl, setAnchorEl] = useState(null); - const handleOpenPopover = (event: React.MouseEvent) => { + const handleOpenPopover = (event: MouseEvent) => { setAnchorEl(event.currentTarget); }; @@ -58,18 +59,20 @@ export default function Slider({ {!!infoContent && ( <> - - - + + + + + - Due to privacy restrictions in some browsers, this estimated - value might be underestimated. Don't hesitate to try different - values to find the best one for your device. + {getRecommendedWorkersNb()}. Due to privacy restrictions in + some browsers, this value might be underestimated. Don't + hesitate to try different values to find the best one for your + device. } />