cleanup: eliminado evento sin uso

This commit is contained in:
2025-03-18 00:46:19 -03:00
parent 629690d29e
commit 3e0452c4d7

View File

@@ -38,14 +38,13 @@ export default function Keeper({ tipo }) {
useEffect(() => { useEffect(() => {
const storedCoords = JSON.parse(localStorage.getItem(tipo) || "[]"); const storedCoords = JSON.parse(localStorage.getItem(tipo) || "[]");
console.log(storedCoords);
if (storedCoords) { if (storedCoords) {
setCoords(storedCoords); setCoords(storedCoords);
} }
}, [tipo]); }, [tipo]);
useEffect(() => { useEffect(() => {
const handlePaste = async (e) => { const handlePaste = async () => {
const text = await navigator.clipboard.readText(); const text = await navigator.clipboard.readText();
const regex = /- (.*), X: (-?\d+)(?:\s*Y:\s*(-?\d+))?\s*Z:\s*(-?\d+)/; const regex = /- (.*), X: (-?\d+)(?:\s*Y:\s*(-?\d+))?\s*Z:\s*(-?\d+)/;
const match = text.match(regex); const match = text.match(regex);