mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-27 19:24:18 +01:00
remove logs
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user