Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(layout): address requested changes
Elian Doran0c8944ab8e2e
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsxindex ad2c281a48..698945d8d5 100644--- a/apps/client/src/widgets/ribbon/NoteActions.tsx+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx@@ -1,5 +1,5 @@import { ConvertToAttachmentResponse } from "@triliumnext/commons";-import { useContext, useState } from "preact/hooks";+import { useContext } from "preact/hooks";import appContext, { CommandNames } from "../../components/app_context";import NoteContext from "../../components/note_context";@@ -8,9 +8,7 @@ import branches from "../../services/branches";import dialog from "../../services/dialog";import { isExperimentalFeatureEnabled } from "../../services/experimental_features";import { t } from "../../services/i18n";-import { downloadFileNote, openNoteExternally } from "../../services/open";import protected_session from "../../services/protected_session";-import protected_session_holder from "../../services/protected_session_holder";import server from "../../services/server";import toast from "../../services/toast";import { isElectron as getIsElectron, isMac as getIsMac } from "../../services/utils";diff --git a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsxindex a023f48de1..113d2ed149 100644--- a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx+++ b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx@@ -46,6 +46,8 @@ function NoteActionsCustomInner(props: NoteActionsCustomInnerProps) {return <FileActions {...props} />;case "image":return <ImageActions {...props} />;+ default:+ return null;}}