Skip to content

Commit

Permalink
[INJIVER-641] remove label values below slider
Browse files Browse the repository at this point in the history
Signed-off-by: srikanth716 <[email protected]>
  • Loading branch information
srikanth716 committed Oct 8, 2024
1 parent 2349110 commit daa72b4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions inji-verify/src/components/Home/VerificationSection/QrScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ function QrScanner() {
}
}, [scannerRef]);

const sliderMarks = Array.from({ length: MARKS_COUNT }, (_, i) => ({
key: `mark-${i}`,
value: i,
label: i % 2 === 0 ? `${i}` : "|",
}));

return (
<div
ref={scannerRef}
Expand Down Expand Up @@ -241,7 +235,7 @@ function QrScanner() {
className="bg-white text-orange-600 border border-orange-600 p-2 rounded-full mr-3"
/>

<div className="flex flex-col items-center space-y-2 w-60">
<div className="w-60">
<Slider
key={`${zoomLevel}`}
aria-label="Zoom Level"
Expand All @@ -251,14 +245,10 @@ function QrScanner() {
value={zoomLevel}
onChange={handleSliderChange}
onChangeCommitted={handleSliderChange}
marks={sliderMarks}
marks
valueLabelDisplay="on"
sx={{
color: "#FF7F00",
".MuiSlider-markLabel": {
color: "gray",
transition: "none",
},
".MuiSlider-valueLabel": {
backgroundColor: "#FF7F00",
color: "white",
Expand Down

0 comments on commit daa72b4

Please sign in to comment.