Remove unnecessary props from <ContactName>

This commit is contained in:
Evan Hahn 2021-09-16 11:15:43 -05:00 committed by GitHub
parent 43685d15c6
commit eed7aff925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 57 additions and 423 deletions

View file

@ -1,4 +1,4 @@
// Copyright 2020 Signal Messenger, LLC
// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
@ -16,11 +16,7 @@ const story = storiesOf(
module
);
const contact = {
title: 'Mr. Fire',
phoneNumber: '(202) 555-0003',
profileName: 'Mr. Fire',
};
const contact = { title: 'Mr. Fire' };
const createProps = (overrideProps: Partial<Props> = {}): Props => ({
i18n,
@ -58,11 +54,7 @@ story.add('Long name', () => {
const props = createProps({
type: 'markVerified',
contact: {
...contact,
profileName: longName,
title: longName,
},
contact: { title: longName },
});
return <VerificationNotification {...props} />;