Skip to content

Commit a4e5439

Browse files
authored
Merge pull request #32 from xchainjs/feature/mobile-responsiveness-improvements
fix: resolve ESLint and TypeScript linting errors
2 parents 96608bc + b6217c6 commit a4e5439

3 files changed

Lines changed: 24 additions & 24 deletions

File tree

components/Link/IconLink.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ interface Props {
88

99
export function IconLink ({ iconClass, url, iconHoverColor }: Props) {
1010
return (
11-
<a
12-
href={url}
13-
target="_blank"
11+
<a
12+
href={url}
13+
target="_blank"
1414
rel="noreferrer"
1515
className="p-2 rounded-lg hover:bg-gray-100 transition-colors duration-200 touch-manipulation min-h-[44px] min-w-[44px] flex items-center justify-center"
1616
>

src/app/layout.tsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ export default function RootLayout ({
7474
</a>
7575

7676
{/* Mobile menu button */}
77-
<button
78-
onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
77+
<button
78+
onClick={() => { setIsMobileMenuOpen(!isMobileMenuOpen) }}
7979
className="md:hidden p-3 text-primary-light hover:text-primary transition-colors"
8080
aria-label="Toggle mobile menu"
8181
>
8282
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
83-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2}
84-
d={isMobileMenuOpen ? "M6 18L18 6M6 6l12 12" : "M4 6h16M4 12h16M4 18h16"} />
83+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2}
84+
d={isMobileMenuOpen ? 'M6 18L18 6M6 6l12 12' : 'M4 6h16M4 12h16M4 18h16'} />
8585
</svg>
8686
</button>
8787
</div>
@@ -92,45 +92,45 @@ export default function RootLayout ({
9292
{/* Mobile Navigation Menu */}
9393
{isMobileMenuOpen && (
9494
<div className="md:hidden fixed inset-0 z-40 pt-16">
95-
<div className="fixed inset-0 bg-black/50" onClick={() => setIsMobileMenuOpen(false)} />
95+
<div className="fixed inset-0 bg-black/50" onClick={() => { setIsMobileMenuOpen(false) }} />
9696
<nav className="relative glass m-4 rounded-xl p-6">
9797
<div className="space-y-4">
98-
<a
99-
href="#playground"
98+
<a
99+
href="#playground"
100100
className="block py-3 px-4 text-primary-light hover:text-primary text-lg transition-colors rounded-lg hover:bg-primary-light/10"
101-
onClick={() => setIsMobileMenuOpen(false)}
101+
onClick={() => { setIsMobileMenuOpen(false) }}
102102
>
103103
Playground
104104
</a>
105-
<a
106-
href="#chains"
105+
<a
106+
href="#chains"
107107
className="block py-3 px-4 text-primary-light hover:text-primary text-lg transition-colors rounded-lg hover:bg-primary-light/10"
108-
onClick={() => setIsMobileMenuOpen(false)}
108+
onClick={() => { setIsMobileMenuOpen(false) }}
109109
>
110110
Chains
111111
</a>
112-
<a
113-
href="#success-stories"
112+
<a
113+
href="#success-stories"
114114
className="block py-3 px-4 text-primary-light hover:text-primary text-lg transition-colors rounded-lg hover:bg-primary-light/10"
115-
onClick={() => setIsMobileMenuOpen(false)}
115+
onClick={() => { setIsMobileMenuOpen(false) }}
116116
>
117117
Success Stories
118118
</a>
119-
<a
120-
href="https://xchainjs.gitbook.io/xchainjs"
119+
<a
120+
href="https://xchainjs.gitbook.io/xchainjs"
121121
target="_blank"
122122
rel="noopener noreferrer"
123123
className="block py-3 px-4 text-primary-light hover:text-primary text-lg transition-colors rounded-lg hover:bg-primary-light/10"
124-
onClick={() => setIsMobileMenuOpen(false)}
124+
onClick={() => { setIsMobileMenuOpen(false) }}
125125
>
126126
Docs
127127
</a>
128-
<a
129-
href="https://discord.com/invite/7RRmc35UEG"
128+
<a
129+
href="https://discord.com/invite/7RRmc35UEG"
130130
target="_blank"
131131
rel="noopener noreferrer"
132132
className="block w-full mt-6 px-4 py-3 bg-gradient-to-r from-chain-blue-500 to-electric-green-500 text-white font-semibold rounded-lg text-center transition-all duration-300 hover:shadow-glow-blue"
133-
onClick={() => setIsMobileMenuOpen(false)}
133+
onClick={() => { setIsMobileMenuOpen(false) }}
134134
>
135135
Get Started
136136
</a>

src/app/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export const metadata: Metadata = {
2929
index: true,
3030
follow: true
3131
}
32-
}
32+
}

0 commit comments

Comments
 (0)