Remove unnecessary props from <ContactName>
This commit is contained in:
parent
43685d15c6
commit
eed7aff925
42 changed files with 57 additions and 423 deletions
|
@ -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} />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue