Fallback for the SafetyNumberViewer

This commit is contained in:
Josh Perez 2022-03-02 13:24:28 -05:00 committed by GitHub
parent da7a76e03f
commit 0872afba3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 61 deletions

View file

@ -16,7 +16,7 @@ import { isInSystemContacts } from '../util/isInSystemContacts';
export type SafetyNumberProps = {
contactID: string;
onClose?: () => void;
onClose: () => void;
};
export type Props = {
@ -59,7 +59,7 @@ export const SafetyNumberChangeDialog = ({
if (selectedContact) {
return (
<Modal i18n={i18n} onClose={onClose}>
<Modal hasXButton i18n={i18n} onClose={onClose}>
{renderSafetyNumber({ contactID: selectedContact.id, onClose })}
</Modal>
);