Remove unnecessary props from <ContactName>
This commit is contained in:
parent
43685d15c6
commit
eed7aff925
42 changed files with 57 additions and 423 deletions
|
@ -25,12 +25,7 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
|||
},
|
||||
overrideProps.type || 'fromOther'
|
||||
),
|
||||
phoneNumber:
|
||||
text('phoneNumber', overrideProps.phoneNumber || '') || undefined,
|
||||
profileName:
|
||||
text('profileName', overrideProps.profileName || '') || undefined,
|
||||
title: text('title', overrideProps.title || ''),
|
||||
name: text('name', overrideProps.name || '') || undefined,
|
||||
...(boolean('disabled', overrideProps.disabled || false)
|
||||
? {
|
||||
disabled: true,
|
||||
|
@ -48,8 +43,6 @@ story.add('Set By Other', () => {
|
|||
const props = createProps({
|
||||
expireTimer: moment.duration(1, 'hour').asSeconds(),
|
||||
type: 'fromOther',
|
||||
phoneNumber: '(202) 555-1000',
|
||||
profileName: 'Mr. Fire',
|
||||
title: 'Mr. Fire',
|
||||
});
|
||||
|
||||
|
@ -68,8 +61,6 @@ story.add('Set By Other (with a long name)', () => {
|
|||
const props = createProps({
|
||||
expireTimer: moment.duration(1, 'hour').asSeconds(),
|
||||
type: 'fromOther',
|
||||
phoneNumber: '(202) 555-1000',
|
||||
profileName: longName,
|
||||
title: longName,
|
||||
});
|
||||
|
||||
|
@ -86,8 +77,6 @@ story.add('Set By You', () => {
|
|||
const props = createProps({
|
||||
expireTimer: moment.duration(1, 'hour').asSeconds(),
|
||||
type: 'fromMe',
|
||||
phoneNumber: '(202) 555-1000',
|
||||
profileName: 'Mr. Fire',
|
||||
title: 'Mr. Fire',
|
||||
});
|
||||
|
||||
|
@ -104,8 +93,6 @@ story.add('Set By Sync', () => {
|
|||
const props = createProps({
|
||||
expireTimer: moment.duration(1, 'hour').asSeconds(),
|
||||
type: 'fromSync',
|
||||
phoneNumber: '(202) 555-1000',
|
||||
profileName: 'Mr. Fire',
|
||||
title: 'Mr. Fire',
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue