Update i18n eslint rule to validate missing/extra icu params
This commit is contained in:
parent
4e6c3ba9df
commit
8ca192a48d
16 changed files with 449 additions and 66 deletions
|
@ -30,9 +30,7 @@ export function RemoveGroupMemberConfirmationDialog({
|
|||
group.accessControlAddFromInviteLink
|
||||
);
|
||||
|
||||
const intlComponents = {
|
||||
name: <ContactName title={conversation.title} />,
|
||||
};
|
||||
const contactName = <ContactName title={conversation.title} />;
|
||||
|
||||
return (
|
||||
<ConfirmationDialog
|
||||
|
@ -51,13 +49,13 @@ export function RemoveGroupMemberConfirmationDialog({
|
|||
<Intl
|
||||
i18n={i18n}
|
||||
id="icu:RemoveGroupMemberConfirmation__description__with-link"
|
||||
components={intlComponents}
|
||||
components={{ name: contactName }}
|
||||
/>
|
||||
) : (
|
||||
<Intl
|
||||
i18n={i18n}
|
||||
id="icu:RemoveGroupMemberConfirmation__description"
|
||||
components={intlComponents}
|
||||
components={{ name: contactName }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue