Refactor update failed strings to remove nesting

This commit is contained in:
Jamie Kyle 2024-07-23 21:10:39 -07:00 committed by GitHub
parent 24a22bf191
commit 233a18bc81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 67 additions and 35 deletions

View file

@ -73,3 +73,24 @@ export function FromContactWithLongNamesBeforeAndAfter(): JSX.Element {
/>
);
}
export function WithNickname(): JSX.Element {
return (
<ProfileChangeNotification
i18n={i18n}
changedContact={getDefaultConversation({
id: 'some-guid',
type: 'direct',
title: 'Mr. Fire 🔥',
nicknameFamilyName: 'test',
nicknameGivenName: 'test',
})}
change={{
type: 'name',
oldName: 'Mr. Fire 🔥 Old',
newName: 'Mr. Fire 🔥 New',
}}
onOpenEditNicknameAndNoteModal={action('onOpenEditNicknameAndNoteModal')}
/>
);
}