Skip to content

Commit 3916cc7

Browse files
committed
fix: unused ternary
1 parent 33c3ba1 commit 3916cc7

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

src/containers/AsideNavigation/InformationPopup/InformationPopup.tsx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,17 @@ export function InformationPopup({onKeyboardShortcutsClick, className}: Informat
4242
]}
4343
filterable={false}
4444
virtualized={false}
45-
renderItem={({text, url}) =>
46-
url ? (
47-
<Link
48-
className={b('docs-link')}
49-
rel="noopener"
50-
target="_blank"
51-
href={url}
52-
title={typeof text === 'string' ? text : undefined}
53-
>
54-
{text}
55-
</Link>
56-
) : (
57-
text
58-
)
59-
}
45+
renderItem={({text, url}) => (
46+
<Link
47+
className={b('docs-link')}
48+
rel="noopener"
49+
target="_blank"
50+
href={url}
51+
title={typeof text === 'string' ? text : undefined}
52+
>
53+
{text}
54+
</Link>
55+
)}
6056
itemClassName={b('item')}
6157
/>
6258
</div>

0 commit comments

Comments
 (0)