From 0c8944ab8e2e1a8ad266ea9e9ba6e8549c57a902 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 15 Dec 2025 07:27:55 +0200 Subject: [PATCH] chore(layout): address requested changes --- apps/client/src/widgets/ribbon/NoteActions.tsx | 4 +--- apps/client/src/widgets/ribbon/NoteActionsCustom.tsx | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx index ad2c281a4..698945d8d 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.tsx index a023f48de..113d2ed14 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 ; case "image": return ; + default: + return null; } }