diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-03 14:56:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-03 14:56:58 -0700 |
commit | cef1aed591861ea0b18e3f67849e249d1da22ce4 (patch) | |
tree | 02d2a644bc18220e70113205c64a051c01e1c68a /modern/src/other | |
parent | 345d64a1662553c63237a236814aa312b582462a (diff) | |
download | trackermap-web-cef1aed591861ea0b18e3f67849e249d1da22ce4.tar.gz trackermap-web-cef1aed591861ea0b18e3f67849e249d1da22ce4.tar.bz2 trackermap-web-cef1aed591861ea0b18e3f67849e249d1da22ce4.zip |
Remove slider label
Diffstat (limited to 'modern/src/other')
-rw-r--r-- | modern/src/other/ReplayPage.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index a233e8ce..c569adec 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, useCallback, } from 'react'; import { - IconButton, Paper, Slider, Toolbar, Tooltip, Typography, + IconButton, Paper, Slider, Toolbar, Typography, } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; @@ -70,12 +70,6 @@ const useStyles = makeStyles((theme) => ({ }, })); -const TimeLabel = ({ children, open, value }) => ( - <Tooltip open={open} enterTouchDelay={0} placement="top" title={value}> - {children} - </Tooltip> -); - const ReplayPage = () => { const t = useTranslation(); const classes = useStyles(); @@ -174,9 +168,7 @@ const ReplayPage = () => { marks={positions.map((_, index) => ({ value: index }))} value={index} onChange={(_, index) => setIndex(index)} - valueLabelDisplay="auto" - valueLabelFormat={(i) => (i < positions.length ? formatTime(positions[i]) : '')} - ValueLabelComponent={TimeLabel} + valueLabelDisplay="off" /> <div className={classes.controls}> {`${index + 1}/${positions.length}`} |