mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
refactor: enforce strict linting rules, replace forEach with for...of loops, and remove console logging throughout the frontend.
This commit is contained in:
@@ -79,8 +79,7 @@ export default function Editor() {
|
||||
requestAnimationFrame(() => {
|
||||
canvasRef.current?.loadData(canvasData);
|
||||
});
|
||||
} catch (err) {
|
||||
console.error("Failed to load existing letter:", err);
|
||||
} catch (_err) {
|
||||
} finally {
|
||||
setIsInitialLoading(false);
|
||||
}
|
||||
@@ -158,8 +157,7 @@ export default function Editor() {
|
||||
}
|
||||
|
||||
setTimeout(() => setIsSaveSuccess(false), 5000);
|
||||
} catch (error) {
|
||||
console.error("Save failed:", error);
|
||||
} catch (_error) {
|
||||
} finally {
|
||||
setIsSealing(false);
|
||||
}
|
||||
@@ -169,9 +167,7 @@ export default function Editor() {
|
||||
if (!shareLink) return;
|
||||
try {
|
||||
await navigator.clipboard.writeText(shareLink);
|
||||
} catch (err) {
|
||||
console.error("Failed to copy:", err);
|
||||
}
|
||||
} catch (_err) {}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user