clenanup unused

This commit is contained in:
cv
2021-04-27 23:58:39 +02:00
parent 484c9929b2
commit c3b2c7abc8
6 changed files with 18 additions and 59 deletions
@@ -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);