diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index d113915147..5bc0e2f566 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -383,7 +383,7 @@ export function getNoteMenu(props: { icon: 'ti ti-repeat', text: i18n.ts.renote, children: () => getNewRenoteMenu(appearNote), - }) + }); menuItems.push({ type: 'parent', @@ -592,7 +592,7 @@ export async function getNewRenoteMenu(appearNote: Misskey.entities.Note): Promi channelId: channel?.id, renoteId: appearNote.id, }).then(() => { - os.toast(channel ? i18n.tsx.renotedToX({name: channel.name}) : i18n.ts.renoted); + os.toast(channel ? i18n.tsx.renotedToX({ name: channel.name }) : i18n.ts.renoted); }); }; @@ -608,12 +608,12 @@ export async function getNewRenoteMenu(appearNote: Misskey.entities.Note): Promi // Notes from channels might not allow renoting outside the channel. if (!appearNote.channel || appearNote.channel.allowRenoteToExternal) { - if (renoteItems.length > 0) renoteItems.push({type: 'divider'}); + if (renoteItems.length > 0) renoteItems.push({ type: 'divider' }); renoteItems.push(...boostMenuItems(ref(appearNote), (v, l) => renoteFunc(v, l, undefined))); // Local-only notes should have the switch visibly forced on. if (appearNote.localOnly) { for (const item of renoteItems) { - if (item && item['type'] == "switch" && item['text'] == i18n.ts._timelines.local) { + if (item && item['type'] === "switch" && item['text'] === i18n.ts._timelines.local) { item['ref'] = ref(true); item['disabled'] = true; break; @@ -633,19 +633,19 @@ export async function getNewRenoteMenu(appearNote: Misskey.entities.Note): Promi })); if (otherChannelItems.length > 0) { renoteItems.push( - {type: 'divider'}, - {type: 'label', text: appearNote.channel ? i18n.ts.renoteToOtherChannel : i18n.ts.renoteToChannel}, + { type: 'divider' }, + { type: 'label', text: appearNote.channel ? i18n.ts.renoteToOtherChannel : i18n.ts.renoteToChannel }, ...otherChannelItems ); } const channelQuoteItems: MenuItem[] = channels.map((channel) => ({ type: 'button', text: channel.name, - action: () => {os.post({renote: appearNote, channel: channel});}, + action: () => {os.post({ renote: appearNote, channel: channel });}, })); if (channelQuoteItems.length > 0) { renoteItems.push( - {type: 'divider'}, + { type: 'divider' }, { type: 'parent', text: i18n.ts.inChannelQuote,