remove logs

This commit is contained in:
MTG2000
2022-05-05 10:59:34 +03:00
parent fff2dda9a4
commit 02c5cfc1b4
2 changed files with 0 additions and 4 deletions

View File

@@ -60,7 +60,6 @@ export default function VoteButton({ onVote = () => { }, ...props }: Props) {
}, 100), 100);
const handlePressDown = () => {
console.log('HANDLE PRESS DOWN');
setWasActive(true);
onPressDown();
}
@@ -68,8 +67,6 @@ export default function VoteButton({ onVote = () => { }, ...props }: Props) {
const handlePressUp = (event?: any) => {
if (!wasActive) return;
console.log('HANDLE PRESS UP');
setWasActive(false);
if (event?.preventDefault) event.preventDefault();
onPressUp();

View File

@@ -14,7 +14,6 @@ export const usePressHolder = (onHold: () => any, holdThreshold: number = 400) =
const onPressUp = () => {
console.log('ON PRESS UP');
cancelAnimationFrame(ref.current.timerID);
ref.current.cntr = 0;