Skip to content

Commit d02d4cc

Browse files
fix: fix lint
1 parent 1c3d6cc commit d02d4cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webview/SearchSidebar/SearchWidgetContainer/LangSelect.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as stylex from '@stylexjs/stylex'
22
import { Icon, icons } from '../SearchResultList/Icon'
3-
import { ChangeEvent, useCallback } from 'react'
3+
import { type ChangeEvent, useCallback } from 'react'
44
import { VscListFlat } from 'react-icons/vsc'
55
import { useSearchField } from '../../hooks/useQuery'
66

@@ -72,7 +72,9 @@ export function LangSelect() {
7272
>
7373
<option value="">Auto Detect</option>
7474
{icons.map(icon => (
75-
<option value={icon}>{capitalize(icon)}</option>
75+
<option key={icon} value={icon}>
76+
{capitalize(icon)}
77+
</option>
7678
))}
7779
</select>
7880
{lang ? <Icon name={lang} style={styles.langIcon} /> : <VscListFlat />}

0 commit comments

Comments
 (0)