Add more buttons to ContactModal

This commit is contained in:
Fedor Indutny 2024-02-14 12:25:27 -08:00 committed by GitHub
parent 307fb7346d
commit 848ed95bda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 150 additions and 30 deletions

View file

@ -31,17 +31,28 @@ const defaultGroup: ConversationType = getDefaultConversation({
export default {
title: 'Components/Conversation/ContactModal',
component: ContactModal,
argTypes: {
hasActiveCall: { control: { type: 'boolean' } },
},
args: {
i18n,
areWeASubscriber: false,
areWeAdmin: false,
badges: [],
blockConversation: action('blockConversation'),
contact: defaultContact,
conversation: defaultGroup,
hasActiveCall: false,
hasStories: undefined,
hideContactModal: action('hideContactModal'),
isAdmin: false,
isMember: true,
onOutgoingAudioCallInConversation: action(
'onOutgoingAudioCallInConversation'
),
onOutgoingVideoCallInConversation: action(
'onOutgoingVideoCallInConversation'
),
removeMemberFromGroup: action('removeMemberFromGroup'),
showConversation: action('showConversation'),
theme: ThemeType.light,