-
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.
Replacing deprecated consts and enums
- Loading branch information
1 parent
04839a2
commit 9374087
Showing
12 changed files
with
128 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { AvatarToken } from './avatar-token'; | ||
export { AVATAR_TOKEN_SIZES } from './avatar-token.constants'; |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
import React from 'react'; | ||
import { action } from '@storybook/addon-actions'; | ||
import ImportToken from './import-token'; | ||
|
||
export default { | ||
title: 'Pages/Swaps/ImportToken', | ||
argTypes: { | ||
onImportTokenClick: { action: 'Token Imported' }, | ||
isOpen: { control: 'boolean' }, | ||
tokenForImport: { | ||
control: 'object', | ||
}, | ||
}, | ||
args: { | ||
isOpen: true, | ||
tokenForImport: { | ||
iconUrl: './BAT_icon.svg', | ||
name: 'Basic Attention Token', | ||
symbol: 'BAT', | ||
address: '0x0d8775f648430679a709e98d2b0cb6250d2887ef', | ||
}, | ||
}, | ||
}; | ||
|
||
export const DefaultStory = () => { | ||
const data = { | ||
iconUrl: './BAT_icon.svg', | ||
name: 'Basic Attention Token', | ||
symbol: 'BAT', | ||
address: '0x0d8775f648430679a709e98d2b0cb6250d2887ef', | ||
}; | ||
return ( | ||
<ImportToken | ||
tokenForImport={data} | ||
onImportTokenClick={action('Token Imported')} | ||
/> | ||
); | ||
}; | ||
export const DefaultStory = (args) => <ImportToken {...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 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