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:
@@ -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 ──────────────────────────────────────────── */}
|
||||
|
||||
@@ -386,15 +386,3 @@ export function LandingPageWrapper({ children, className = "" }: WrapperProps) {
|
||||
);
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// DEFAULT EXPORT: Complete Landing Page
|
||||
// ============================================
|
||||
export default function LandingPage({
|
||||
children,
|
||||
}: {
|
||||
children?: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<LandingPageWrapper>{children}</LandingPageWrapper>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user