fix mandatory unique key in LanguageMenu list (#722)

This commit is contained in:
Jack Bauer 2022-06-16 17:36:31 +04:00 committed by GitHub
parent b5d15dff39
commit 0cfa44f4d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,7 @@ export function LanguageMenu() {
<DMSubMenu label={intl.formatMessage({ id: 'language' })}> <DMSubMenu label={intl.formatMessage({ id: 'language' })}>
{languages.map((language) => ( {languages.map((language) => (
<DMCheckboxItem <DMCheckboxItem
key={language.code}
checked={setting.language === language.code} checked={setting.language === language.code}
onCheckedChange={() => handleChangeLanguage(language.code)} onCheckedChange={() => handleChangeLanguage(language.code)}
id={`TD-MenuItem-Language-${language}`} id={`TD-MenuItem-Language-${language}`}