1- /* eslint-disable react-hooks/rules-of-hooks, @typescript-eslint/no-unused-vars */
1+ /* eslint-disable react-hooks/rules-of-hooks, @typescript-eslint/no-unused-vars, @typescript-eslint/ban-ts-comment */
2+ //@ts -nocheck
23"use client" ;
34
45import { useTheme } from "@/lib/theme/ThemeProvider" ;
@@ -10,7 +11,7 @@ import Link from "next/link";
1011import { useVersion } from "@/hooks/useVersion" ;
1112import { WalletStatus , WalletConnect } from "../wallet/WalletConnect" ;
1213
13- // Lazy loading para componentes pesados
14+
1415const LazyWalletConnect = lazy ( ( ) =>
1516 import ( "../wallet/WalletConnect" ) . then ( module => ( { default : module . WalletConnect } ) )
1617) ;
@@ -31,7 +32,7 @@ interface FooterLinkProps {
3132 label : string ;
3233}
3334
34- // Constants otimizados
35+
3536const SCROLL_THRESHOLD = 10 ;
3637const HEADER_Z_INDEX = 1001 ;
3738const RESIZE_DEBOUNCE_MS = 100 ;
@@ -43,7 +44,7 @@ const EXTERNAL_LINKS = {
4344 docs : "https://papi.how"
4445} as const ;
4546
46- // SVG Icons otimizados como componentes
47+
4748const DashboardIcon = memo ( ( ) => (
4849 < svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" strokeWidth = "2" >
4950 < rect x = "3" y = "3" width = "7" height = "7" />
@@ -84,7 +85,7 @@ const ExternalIcon = memo(() => (
8485 </ svg >
8586) ) ;
8687
87- // Logo otimizado
88+
8889const LogoIcon = memo ( ( ) => {
8990 const { getNetworkColor } = useTheme ( ) ;
9091 const primaryColor = useMemo ( ( ) => getNetworkColor ( "primary" ) , [ getNetworkColor ] ) ;
@@ -109,7 +110,7 @@ const LogoIcon = memo(() => {
109110 ) ;
110111} ) ;
111112
112- // Componente de ícone otimizado
113+
113114const Icon = memo < {
114115 children : ReactNode ;
115116 size ?: number ;
@@ -133,7 +134,7 @@ const Icon = memo<{
133134 </ span >
134135) ) ;
135136
136- // Hook de scroll otimizado com debounce
137+
137138const useScrolled = ( threshold = SCROLL_THRESHOLD , enabled = true ) => {
138139 const [ scrolled , setScrolled ] = useState ( false ) ;
139140
@@ -149,7 +150,7 @@ const useScrolled = (threshold = SCROLL_THRESHOLD, enabled = true) => {
149150 } , 16 ) ; // ~60fps
150151 } ;
151152
152- handleScroll ( ) ; // Set initial state
153+ handleScroll ( ) ;
153154 window . addEventListener ( "scroll" , handleScroll , { passive : true } ) ;
154155
155156 return ( ) => {
0 commit comments