mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Refine types for #600
This commit is contained in:
@ -30,7 +30,7 @@ const menuAccount = ({
|
||||
}: {
|
||||
type: 'status' | 'account' // Where the action is coming from
|
||||
openChange: boolean
|
||||
account?: Mastodon.Account
|
||||
account?: Partial<Mastodon.Account> & Pick<Mastodon.Account, 'id' | 'username' | 'acct'>
|
||||
status?: Mastodon.Status
|
||||
queryKey?: QueryKeyTimeline
|
||||
rootQueryKey?: QueryKeyTimeline
|
||||
|
@ -13,7 +13,7 @@ const menuShare = (
|
||||
}
|
||||
| {
|
||||
type: 'account'
|
||||
url: string
|
||||
url?: string
|
||||
}
|
||||
): ContextMenu[][] => {
|
||||
if (params.type === 'status' && params.visibility === 'direct') return []
|
||||
|
Reference in New Issue
Block a user