Skip to content

Commit 9f80789

Browse files
committed
lint
1 parent fdb0829 commit 9f80789

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ export function FullLayout(props: LayoutProps) {
137137
onClick={() => setIsCollapsed(!isCollapsed)}
138138
className='text-2xl hover:scale-110 transition-transform cursor-pointer'
139139
aria-label={t`Expand sidebar - ${wallet.name}`}
140-
aria-expanded={!isCollapsed}
140+
{...(isCollapsed
141+
? { 'aria-expanded': false }
142+
: { 'aria-expanded': true })}
141143
>
142144
<span role='img' aria-label={t`Wallet emoji`}>
143145
{wallet.emoji}
@@ -160,7 +162,9 @@ export function FullLayout(props: LayoutProps) {
160162
aria-label={
161163
isCollapsed ? t`Expand sidebar` : t`Collapse sidebar`
162164
}
163-
aria-expanded={!isCollapsed}
165+
{...(isCollapsed
166+
? { 'aria-expanded': false }
167+
: { 'aria-expanded': true })}
164168
>
165169
{isCollapsed ? (
166170
<PanelLeft className='h-5 w-5' aria-hidden='true' />

0 commit comments

Comments
 (0)