mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
clenanup unused
This commit is contained in:
@@ -4,8 +4,8 @@ import styles from './MyProgressBar.module.css';
|
||||
export default function MyProgressBar(props) {
|
||||
const { now, complete, showElapsed } = props;
|
||||
const percentComplete = showElapsed
|
||||
? clamp((100 - (now * 100) / complete - 1), 0, 100)
|
||||
: clamp((now * 100) / complete - 1, 0, 100)
|
||||
? clamp((100 - (now * 100) / complete + 2), 0, 100)
|
||||
: clamp((now * 100) / complete - 2, 0, 100)
|
||||
|
||||
|
||||
return (
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useInterval } from '../../../app/hooks/useInterval';
|
||||
|
||||
export default function Paginator(props) {
|
||||
const { events, selectedId } = props;
|
||||
const LIMIT_PER_PAGE = props.limit || 7;
|
||||
const LIMIT_PER_PAGE = props.limit || 8;
|
||||
const SCROLL_TIME = (props.time * 1000) || 5000;
|
||||
const SCROLL_PAST = false;
|
||||
const [numEvents, setNumEvents] = useState(0);
|
||||
|
||||
Reference in New Issue
Block a user