Removing the textClicked, because it was only source of disturbance

This commit is contained in:
pierrbt
2023-06-22 23:17:50 +02:00
parent 3de744d5e9
commit ba62c13cfa

View File

@@ -30,7 +30,6 @@ const Body = ({ share, appUrl }: { share: Share; appUrl: string }) => {
const clipboard = useClipboard({ timeout: 500 }); const clipboard = useClipboard({ timeout: 500 });
const modals = useModals(); const modals = useModals();
const router = useRouter(); const router = useRouter();
const [linkClicked, setLinkClicked] = useState(false);
const [checkState, setCheckState] = useState(false); const [checkState, setCheckState] = useState(false);
const timerRef = useRef<number | ReturnType<typeof setTimeout> | undefined>(undefined); const timerRef = useRef<number | ReturnType<typeof setTimeout> | undefined>(undefined);
@@ -48,7 +47,6 @@ const Body = ({ share, appUrl }: { share: Share; appUrl: string }) => {
setCheckState(false); setCheckState(false);
}, 1500); }, 1500);
setLinkClicked(true);
setCheckState(true); setCheckState(true);
} }