fix(react/ribbon): solve some type errors

This commit is contained in:
Elian Doran
2025-08-27 16:16:25 +03:00
parent 461eb273d9
commit 1851336862
4 changed files with 5 additions and 83 deletions

View File

@@ -124,7 +124,7 @@ function ProtectedNoteSwitch({ note }: { note?: FNote | null }) {
<FormToggle
switchOnName={t("protect_note.toggle-on")} switchOnTooltip={t("protect_note.toggle-on-hint")}
switchOffName={t("protect_note.toggle-off")} switchOffTooltip={t("protect_note.toggle-off-hint")}
currentValue={isProtected}
currentValue={!!isProtected}
onChange={(shouldProtect) => note && protected_session.protectNote(note.noteId, shouldProtect, false)}
/>
</div>