fix: react-doctor deslop/unused-export 7→0, prefer-module-scope-pure-function 6→0 (hoist handleExportCSV, downloadCSV, triggerDownload, scrollToContent, handleLogout, applyMappings)

This commit is contained in:
Nora
2026-06-26 06:24:02 -06:00
parent adce211480
commit 9633680e23
13 changed files with 145 additions and 240 deletions
+7 -7
View File
@@ -13,6 +13,13 @@ if (typeof window !== "undefined") {
// ─────────────────────────────────────────────────────────────────────────────
// CINEMATIC HERO SECTION - APPLE-STYLE SCROLL-DRIVEN ANIMATIONS
// ─────────────────────────────────────────────────────────────────────────────
function scrollToContent() {
const nextSection = document.getElementById("story");
if (nextSection) {
nextSection.scrollIntoView({ behavior: "smooth" });
}
}
export default function HeroSection() {
const containerRef = useRef<HTMLDivElement>(null);
const heroRef = useRef<HTMLElement>(null);
@@ -227,13 +234,6 @@ export default function HeroSection() {
return () => ctx.revert();
}, [mounted]);
const scrollToContent = () => {
const nextSection = document.getElementById("story");
if (nextSection) {
nextSection.scrollIntoView({ behavior: "smooth" });
}
};
return (
<>
{/* ─── SCROLL PROGRESS BAR ──────────────────────────────────────────── */}