From 68055decfc06ac371aa047d546ed1c3085b6343f Mon Sep 17 00:00:00 2001 From: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> Date: Tue, 3 Dec 2024 21:41:46 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=AA=BF=E6=95=B42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/scripts/get-note-menu.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 1d3e293d95..eb3bea0841 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -302,7 +302,7 @@ export function getNoteMenu(props: { text: i18n.ts.unclip, danger: true, action: unclip, - }, { type: 'divider' as const }); + }, { type: 'divider' }); } menuItems.push({ @@ -350,7 +350,7 @@ export function getNoteMenu(props: { }); } - menuItems.push({ type: 'divider' as const }); + menuItems.push({ type: 'divider' }); menuItems.push(statePromise.then(state => state.isFavorited ? { icon: 'ti ti-star-off', @@ -408,12 +408,12 @@ export function getNoteMenu(props: { }); if (appearNote.userId !== $i.id) { - menuItems.push({ type: 'divider' as const }); + menuItems.push({ type: 'divider' }); menuItems.push(getAbuseNoteMenu(appearNote, i18n.ts.reportAbuse)); } if (appearNote.channel && (appearNote.channel.userId === $i.id || $i.isModerator || $i.isAdmin)) { - menuItems.push({ type: 'divider' as const }); + menuItems.push({ type: 'divider' }); menuItems.push({ type: 'parent', icon: 'ti ti-device-tv', @@ -448,7 +448,7 @@ export function getNoteMenu(props: { } if (appearNote.userId === $i.id || $i.isModerator || $i.isAdmin) { - menuItems.push({ type: 'divider' as const }); + menuItems.push({ type: 'divider' }); if (appearNote.userId === $i.id) { menuItems.push({ icon: 'ti ti-edit',