From 08023060e6d8fe2a9f01413cd5ed4b88c62f9bac Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 29 Jan 2022 20:08:14 +0900 Subject: [PATCH 1/2] fix --- packages/client/src/components/ui/popup-menu.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/client/src/components/ui/popup-menu.vue b/packages/client/src/components/ui/popup-menu.vue index 0a86c77e9..8d6c1b569 100644 --- a/packages/client/src/components/ui/popup-menu.vue +++ b/packages/client/src/components/ui/popup-menu.vue @@ -16,7 +16,6 @@ defineProps<{ width?: number; viaKeyboard?: boolean; src?: any; - ev: MouseEvent; }>(); const emit = defineEmits<{ From 32dd3bf8420efad9e4c25fcbc701c9d0e377dbbe Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 29 Jan 2022 20:13:29 +0900 Subject: [PATCH 2/2] fix --- packages/client/src/types/menu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/types/menu.ts b/packages/client/src/types/menu.ts index 306bb562b..d178a8208 100644 --- a/packages/client/src/types/menu.ts +++ b/packages/client/src/types/menu.ts @@ -6,11 +6,11 @@ export type MenuAction = (ev: MouseEvent) => void; export type MenuDivider = null; export type MenuNull = undefined; export type MenuLabel = { type: 'label', text: string }; -export type MenuLink = { type: 'link', to: string, text: string, icon?: string, indicate?: boolean, avatar: Misskey.entities.User }; +export type MenuLink = { type: 'link', to: string, text: string, icon?: string, indicate?: boolean, avatar?: Misskey.entities.User }; export type MenuA = { type: 'a', href: string, target?: string, download?: string, text: string, icon?: string, indicate?: boolean }; export type MenuUser = { type: 'user', user: Misskey.entities.User, active?: boolean, indicate?: boolean, action: MenuAction }; export type MenuSwitch = { type: 'switch', ref: Ref, text: string, disabled?: boolean }; -export type MenuButton = { type?: 'button', text: string, icon?: string, indicate?: boolean, danger?: boolean, active?: boolean, avatar: Misskey.entities.User; action: MenuAction }; +export type MenuButton = { type?: 'button', text: string, icon?: string, indicate?: boolean, danger?: boolean, active?: boolean, avatar?: Misskey.entities.User; action: MenuAction }; export type MenuPending = { type: 'pending' };