lint: status bar

This commit is contained in:
Elian Doran 2025-12-13 00:11:28 +02:00
parent eb02330fdf
commit fe13065ef8
No known key found for this signature in database

View File

@ -148,18 +148,18 @@ function LanguageSwitcher({ note }: StatusBarContext) {
title={t("status_bar.language_title")} title={t("status_bar.language_title")}
text={<span dir={activeLocale?.rtl ? "rtl" : "ltr"}>{getLocaleName(activeLocale)}</span>} text={<span dir={activeLocale?.rtl ? "rtl" : "ltr"}>{getLocaleName(activeLocale)}</span>}
> >
{processedLocales.map((locale, index) => { {processedLocales.map((locale, index) =>
if (typeof locale === "object") { (typeof locale === "object") ? (
return <FormListItem <FormListItem
key={locale.id} key={locale.id}
rtl={locale.rtl} rtl={locale.rtl}
checked={locale.id === currentNoteLanguage} checked={locale.id === currentNoteLanguage}
onClick={() => setCurrentNoteLanguage(locale.id)} onClick={() => setCurrentNoteLanguage(locale.id)}
>{locale.name}</FormListItem>; >{locale.name}</FormListItem>
} else { ) : (
return <FormDropdownDivider key={`divider-${index}`} />; <FormDropdownDivider key={`divider-${index}`} />
} )
})} )}
<FormDropdownDivider /> <FormDropdownDivider />
<FormListItem <FormListItem
onClick={() => openInAppHelpFromUrl("veGu4faJErEM")} onClick={() => openInAppHelpFromUrl("veGu4faJErEM")}