From 6c72806e31b5fb9b5659afb01760018dbf84ca0c Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 22 Jun 2023 17:25:50 -0700 Subject: [PATCH] refactor: :recycle: reorganize note menu translate just above view remote --- packages/client/src/scripts/get-note-menu.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 433291c9cc..1eeaf29a5d 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -268,13 +268,6 @@ export function getNoteMenu(props: { null, ] : []), - instance.translatorAvailable - ? { - icon: "ph-translate ph-bold ph-lg", - text: i18n.ts.translate, - action: translate, - } - : undefined, statePromise.then((state) => state?.isFavorited ? { @@ -334,6 +327,13 @@ export function getNoteMenu(props: { action: () => togglePin(true), } : undefined, + instance.translatorAvailable + ? { + icon: "ph-translate ph-bold ph-lg", + text: i18n.ts.translate, + action: translate, + } + : undefined, appearNote.url || appearNote.uri ? { icon: "ph-arrow-square-out ph-bold ph-lg",