fix(ui): fix language picker tooltip

This commit is contained in:
psychedelicious 2023-05-12 19:52:21 +10:00
parent 7d582553f2
commit eebaa50710
2 changed files with 18 additions and 18 deletions

View File

@ -25,7 +25,7 @@
"common": {
"hotkeysLabel": "Hotkeys",
"themeLabel": "Theme",
"languagePickerLabel": "Language Picker",
"languagePickerLabel": "Language",
"reportBugLabel": "Report Bug",
"githubLabel": "Github",
"discordLabel": "Discord",

View File

@ -40,14 +40,15 @@ export default function LanguagePicker() {
const language = useAppSelector(languageSelector);
return (
<Tooltip title={t('common.languagePickerLabel')}>
<Menu closeOnSelect={false}>
<Tooltip label={t('common.languagePickerLabel')} hasArrow>
<MenuButton
as={IAIIconButton}
icon={<FaLanguage />}
variant="link"
aria-label={t('common.languagePickerLabel')}
/>
</Tooltip>
<MenuList>
<MenuOptionGroup value={language}>
{map(LANGUAGES, (languageName, l: keyof typeof LANGUAGES) => (
@ -62,6 +63,5 @@ export default function LanguagePicker() {
</MenuOptionGroup>
</MenuList>
</Menu>
</Tooltip>
);
}