refactor: ♻️ reorganize note menu

translate just above view remote
This commit is contained in:
ThatOneCalculator 2023-06-22 17:25:50 -07:00
parent 43dacdcf81
commit 6c72806e31
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 7 additions and 7 deletions

View File

@ -268,13 +268,6 @@ export function getNoteMenu(props: {
null, null,
] ]
: []), : []),
instance.translatorAvailable
? {
icon: "ph-translate ph-bold ph-lg",
text: i18n.ts.translate,
action: translate,
}
: undefined,
statePromise.then((state) => statePromise.then((state) =>
state?.isFavorited state?.isFavorited
? { ? {
@ -334,6 +327,13 @@ export function getNoteMenu(props: {
action: () => togglePin(true), action: () => togglePin(true),
} }
: undefined, : undefined,
instance.translatorAvailable
? {
icon: "ph-translate ph-bold ph-lg",
text: i18n.ts.translate,
action: translate,
}
: undefined,
appearNote.url || appearNote.uri appearNote.url || appearNote.uri
? { ? {
icon: "ph-arrow-square-out ph-bold ph-lg", icon: "ph-arrow-square-out ph-bold ph-lg",