Improve types in ConversationView#showConversationDetails

This commit is contained in:
Evan Hahn 2021-03-12 17:31:47 -06:00 committed by Josh Perez
parent 6a72879c87
commit e09fb6cce4
4 changed files with 13 additions and 9 deletions

View file

@ -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'),
});

View file

@ -54,7 +54,7 @@ export type StateProps = {
avatar?: undefined | ArrayBuffer;
title?: string;
}>
) => void;
) => Promise<void>;
onBlockAndDelete: () => void;
onDelete: () => void;
};