Skip to content

Commit 291f96d

Browse files
committed
Fix Linting
1 parent 48bab4b commit 291f96d

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

src/sections/Header.tsx

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ const Header: React.FC = () => {
5656
return (
5757
<>
5858
<div
59-
className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${scrolled ? 'backdrop-blur-md bg-white/90 shadow-lg' : 'bg-white'
60-
}`}
59+
className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${
60+
scrolled ? 'backdrop-blur-md bg-white/90 shadow-lg' : 'bg-white'
61+
}`}
6162
>
6263
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
6364
<div className="flex justify-between items-center h-20">
@@ -77,27 +78,29 @@ const Header: React.FC = () => {
7778
{/* Mobile Menu Button */}
7879
<button
7980
className="md:hidden relative w-10 h-10 focus:outline-none group z-50"
80-
8181
onClick={() => setMenuOpen(!menuOpen)}
8282
aria-label="Toggle menu"
8383
aria-expanded={menuOpen}
8484
>
8585
<div className="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
8686
<span
87-
className={`block w-6 h-0.5 bg-gray-600 transition-all duration-300 ${menuOpen
88-
? 'rotate-45 translate-y-1.5'
89-
: 'translate-y-[-4px]'
90-
}`}
87+
className={`block w-6 h-0.5 bg-gray-600 transition-all duration-300 ${
88+
menuOpen
89+
? 'rotate-45 translate-y-1.5'
90+
: 'translate-y-[-4px]'
91+
}`}
9192
/>
9293
<span
93-
className={`block w-6 h-0.5 bg-gray-600 transition-all duration-300 mt-1 ${menuOpen ? 'opacity-0' : ''
94-
}`}
94+
className={`block w-6 h-0.5 bg-gray-600 transition-all duration-300 mt-1 ${
95+
menuOpen ? 'opacity-0' : ''
96+
}`}
9597
/>
9698
<span
97-
className={`block w-6 h-0.5 bg-gray-600 transition-all duration-300 mt-1 ${menuOpen
98-
? '-rotate-45 -translate-y-1.5'
99-
: 'translate-y-[4px]'
100-
}`}
99+
className={`block w-6 h-0.5 bg-gray-600 transition-all duration-300 mt-1 ${
100+
menuOpen
101+
? '-rotate-45 -translate-y-1.5'
102+
: 'translate-y-[4px]'
103+
}`}
101104
/>
102105
</div>
103106
</button>
@@ -116,12 +119,12 @@ const Header: React.FC = () => {
116119
transition-all duration-200 hover:bg-gray-50 flex items-center space-x-1
117120
${activeDropdown === key ? 'text-blue-600' : ''}`}
118121
aria-expanded={activeDropdown === key}
119-
120122
>
121123
<span>{label}</span>
122124
<svg
123-
className={`w-4 h-4 transition-transform duration-200 ${activeDropdown === key ? 'rotate-180' : ''
124-
}`}
125+
className={`w-4 h-4 transition-transform duration-200 ${
126+
activeDropdown === key ? 'rotate-180' : ''
127+
}`}
125128
fill="none"
126129
viewBox="0 0 24 24"
127130
stroke="currentColor"
@@ -202,7 +205,6 @@ const Header: React.FC = () => {
202205
transition={{ duration: 0.2 }}
203206
className="fixed inset-0 bg-black/30 md:hidden z-40"
204207
onClick={closeMenu}
205-
206208
/>
207209
)}
208210
</AnimatePresence>
@@ -232,13 +234,13 @@ const Header: React.FC = () => {
232234
}
233235
className="flex items-center justify-between w-full text-left px-2 py-2
234236
text-gray-700 font-medium rounded-lg hover:bg-gray-50"
235-
236237
aria-expanded={activeDropdown === key}
237238
>
238239
<span>{label}</span>
239240
<svg
240-
className={`w-5 h-5 transition-transform duration-200 ${activeDropdown === key ? 'rotate-180' : ''
241-
}`}
241+
className={`w-5 h-5 transition-transform duration-200 ${
242+
activeDropdown === key ? 'rotate-180' : ''
243+
}`}
242244
fill="none"
243245
viewBox="0 0 24 24"
244246
stroke="currentColor"
@@ -282,7 +284,6 @@ const Header: React.FC = () => {
282284
)}
283285

284286
{[
285-
286287
'Products',
287288
'Donate',
288289
'Join Development',

0 commit comments

Comments
 (0)