cleanup: eliminado evento sin uso
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user