mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 07:58:46 +01:00
Update i18n eslint rule to validate missing/extra icu params
This commit is contained in:
@@ -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 }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user