chore(react/ribbon): toggleable tabs

This commit is contained in:
Elian Doran
2025-08-21 19:42:53 +03:00
parent 6849f80506
commit 9bb048fb01
4 changed files with 14 additions and 42 deletions

View File

@@ -256,15 +256,12 @@ export function useNoteContext() {
setNotePath(noteContext.notePath);
});
useTriliumEventBeta("setNoteContext", ({ noteContext }) => {
console.log("Set note context", noteContext, noteContext.noteId);
setNoteContext(noteContext);
});
useTriliumEventBeta("noteSwitchedAndActivated", ({ noteContext }) => {
console.log("Note switched and activated")
setNoteContext(noteContext);
});
useTriliumEventBeta("noteSwitched", ({ noteContext, notePath }) => {
console.warn("Note switched", notePath);
setNotePath(notePath);
});
useTriliumEventBeta("frocaReloaded", () => {