Removes showIdentity and showSafetyNumber in favor of redux action

This commit is contained in:
Josh Perez 2022-12-09 00:53:19 -05:00 committed by GitHub
parent 5043ac2e02
commit 135c832748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 43 deletions

View file

@ -24,7 +24,7 @@ type PropsHousekeeping = {
};
export type PropsActions = {
showIdentity: (id: string) => void;
toggleSafetyNumberModal: (id: string) => void;
};
export type Props = PropsData & PropsHousekeeping & PropsActions;
@ -33,7 +33,7 @@ export function SafetyNumberNotification({
contact,
isGroup,
i18n,
showIdentity,
toggleSafetyNumberModal,
}: Props): JSX.Element {
const changeKey = isGroup
? 'safetyNumberChangedGroup'
@ -62,7 +62,7 @@ export function SafetyNumberNotification({
button={
<Button
onClick={() => {
showIdentity(contact.id);
toggleSafetyNumberModal(contact.id);
}}
size={ButtonSize.Small}
variant={ButtonVariant.SystemMessage}