First-class profile name rendering

This commit is contained in:
Scott Nonnenberg 2020-07-23 18:35:32 -07:00
parent 632cd0e87e
commit d07b8e82b2
63 changed files with 1044 additions and 454 deletions

View file

@ -12,17 +12,19 @@ import { LocalizerType } from '../../types/Util';
export type Props = {
i18n: LocalizerType;
onAccept(): unknown;
} & Omit<ContactNameProps, 'module'> &
} & Omit<ContactNameProps, 'module' | 'i18n'> &
Omit<
MessageRequestActionsConfirmationProps,
'i18n' | 'state' | 'onChangeState'
>;
// tslint:disable-next-line max-func-body-length
export const MessageRequestActions = ({
i18n,
name,
profileName,
phoneNumber,
title,
conversationType,
isBlocked,
onBlock,
@ -45,6 +47,7 @@ export const MessageRequestActions = ({
name={name}
profileName={profileName}
phoneNumber={phoneNumber}
title={title}
conversationType={conversationType}
state={mrState}
onChangeState={setMrState}
@ -66,6 +69,8 @@ export const MessageRequestActions = ({
name={name}
profileName={profileName}
phoneNumber={phoneNumber}
title={title}
i18n={i18n}
/>
</strong>,
]}