Skip to content

Commit

Permalink
chore: 調整2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayamame-beans committed Dec 3, 2024
1 parent 9b25b0a commit 68055de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/frontend/src/scripts/get-note-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export function getNoteMenu(props: {
text: i18n.ts.unclip,
danger: true,
action: unclip,
}, { type: 'divider' as const });
}, { type: 'divider' });
}

menuItems.push({
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 68055de

Please sign in to comment.