mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 05:14:24 +01:00
lint: status bar
This commit is contained in:
parent
eb02330fdf
commit
fe13065ef8
@ -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")}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user