Improve types in ConversationView#showConversationDetails
This commit is contained in:
parent
6a72879c87
commit
e09fb6cce4
4 changed files with 13 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
|
@ -65,7 +65,9 @@ const createProps = (hasGroupLink = false): Props => ({
|
|||
showGroupV2Permissions: action('showGroupV2Permissions'),
|
||||
showPendingInvites: action('showPendingInvites'),
|
||||
showLightboxForMedia: action('showLightboxForMedia'),
|
||||
updateGroupAttributes: action('updateGroupAttributes'),
|
||||
updateGroupAttributes: async () => {
|
||||
action('updateGroupAttributes')();
|
||||
},
|
||||
onBlockAndDelete: action('onBlockAndDelete'),
|
||||
onDelete: action('onDelete'),
|
||||
});
|
||||
|
|
|
@ -54,7 +54,7 @@ export type StateProps = {
|
|||
avatar?: undefined | ArrayBuffer;
|
||||
title?: string;
|
||||
}>
|
||||
) => void;
|
||||
) => Promise<void>;
|
||||
onBlockAndDelete: () => void;
|
||||
onDelete: () => void;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue