We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c3d6cc commit d02d4ccCopy full SHA for d02d4cc
src/webview/SearchSidebar/SearchWidgetContainer/LangSelect.tsx
@@ -1,6 +1,6 @@
1
import * as stylex from '@stylexjs/stylex'
2
import { Icon, icons } from '../SearchResultList/Icon'
3
-import { ChangeEvent, useCallback } from 'react'
+import { type ChangeEvent, useCallback } from 'react'
4
import { VscListFlat } from 'react-icons/vsc'
5
import { useSearchField } from '../../hooks/useQuery'
6
@@ -72,7 +72,9 @@ export function LangSelect() {
72
>
73
<option value="">Auto Detect</option>
74
{icons.map(icon => (
75
- <option value={icon}>{capitalize(icon)}</option>
+ <option key={icon} value={icon}>
76
+ {capitalize(icon)}
77
+ </option>
78
))}
79
</select>
80
{lang ? <Icon name={lang} style={styles.langIcon} /> : <VscListFlat />}
0 commit comments