fix(status_bar): language selector not updating properly

This commit is contained in:
Elian Doran
2025-12-10 23:36:47 +02:00
parent 6e8e10323f
commit 1ab89d0db0
3 changed files with 19 additions and 13 deletions

View File

@@ -1,19 +1,25 @@
import "./NoteStatusBar.css";
import { t } from "../services/i18n";
import { openInAppHelpFromUrl } from "../services/utils";
import "./NoteStatusBar.css";
import { FormListItem } from "./react/FormList";
import { useNoteContext } from "./react/hooks";
import { NoteLanguageSelector } from "./ribbon/BasicPropertiesTab";
export default function NoteStatusBar() {
const { note } = useNoteContext();
return (
<div className="note-status-bar">
<NoteLanguageSelector extraChildren={(
<FormListItem
onClick={() => openInAppHelpFromUrl("veGu4faJErEM")}
icon="bx bx-help-circle"
>{t("note_language.help-on-languages")}</FormListItem>
)} />
<NoteLanguageSelector
note={note}
extraChildren={(
<FormListItem
onClick={() => openInAppHelpFromUrl("veGu4faJErEM")}
icon="bx bx-help-circle"
>{t("note_language.help-on-languages")}</FormListItem>
)}
/>
</div>
);
}