-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing import errors, linting errors and adding a story
- Loading branch information
1 parent
ca61978
commit 6c127e8
Showing
5 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...ontainer-content/confirm-page-container-summary/confirm-page-container-summary.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from 'react'; | ||
import ConfirmPageContainerSummary from '.'; | ||
|
||
export default { | ||
title: 'Components/UI/ConfirmPageContainerSummary', // title should follow the folder structure location of the component. Don't use spaces. | ||
argTypes: { | ||
action: { | ||
control: 'text', | ||
}, | ||
title: { | ||
control: 'text', | ||
}, | ||
image: { | ||
control: 'text', | ||
}, | ||
titleComponent: { | ||
control: 'text', | ||
}, | ||
subtitleComponent: { | ||
control: 'text', | ||
}, | ||
hideSubtitle: { | ||
control: 'boolean', | ||
}, | ||
className: { | ||
control: 'text', | ||
}, | ||
tokenAddress: { | ||
control: 'text', | ||
}, | ||
toAddress: { | ||
control: 'text', | ||
}, | ||
nonce: { | ||
control: 'text', | ||
}, | ||
origin: { | ||
control: 'text', | ||
}, | ||
hideTitle: { | ||
control: 'boolean', | ||
}, | ||
transactionType: { | ||
control: 'text', | ||
}, | ||
}, | ||
args: { | ||
action: 'action', | ||
title: 'title', | ||
titleComponent: 'titleComponent', | ||
subtitleComponent: 'subtitleComponent', | ||
className: 'className', | ||
tokenAddress: '0x2170ed0880ac9a755fd29b2688956bd959f933f8', | ||
toAddress: '0x2170ed0880ac9a755fd29b2688956bd959f933f8', | ||
nonce: 'nonce', | ||
origin: 'origin', | ||
hideTitle: 'hideTitle', | ||
transactionType: 'transactionType', | ||
}, | ||
}; | ||
|
||
export const DefaultStory = (args) => <ConfirmPageContainerSummary {...args} />; | ||
|
||
DefaultStory.storyName = 'Default'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters