-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replacing deprecated components and consts
- Loading branch information
1 parent
0ea765e
commit ef6c415
Showing
7 changed files
with
121 additions
and
70 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
This file was deleted.
Oops, something went wrong.
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
29 changes: 29 additions & 0 deletions
29
ui/components/app/snaps/snap-remove-warning/snap-remove-warning.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,29 @@ | ||
import React from 'react'; | ||
import SnapRemoveWarning from './snap-remove-warning'; | ||
|
||
export default { | ||
title: 'Components/App/Snaps/SnapRemoveWarning', | ||
component: SnapRemoveWarning, | ||
argTypes: { | ||
onCancel: { | ||
action: 'onCancel', | ||
}, | ||
onSubmit: { | ||
action: 'onSubmit', | ||
}, | ||
snapName: { | ||
control: 'text', | ||
}, | ||
isOpen: { | ||
control: 'boolean', | ||
}, | ||
}, | ||
args: { | ||
snapName: 'Snap Name', | ||
isOpen: true, | ||
}, | ||
}; | ||
|
||
export const DefaultStory = (args) => <SnapRemoveWarning {...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
19 changes: 19 additions & 0 deletions
19
ui/components/app/snaps/snap-ui-markdown/snap-ui-markdown.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,19 @@ | ||
import React from 'react'; | ||
import { SnapUIMarkdown } from './snap-ui-markdown'; | ||
|
||
export default { | ||
title: 'Components/App/Snaps/SnapUIMarkdown', | ||
component: SnapUIMarkdown, | ||
argTypes: { | ||
children: { | ||
control: 'text', | ||
}, | ||
}, | ||
args: { | ||
children: 'A Test String', | ||
}, | ||
}; | ||
|
||
export const DefaultStory = (args) => <SnapUIMarkdown {...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