|
|
@ -1,17 +1,29 @@ |
|
|
|
import React from 'react'; |
|
|
|
import React from 'react'; |
|
|
|
import AddNetwork from '.'; |
|
|
|
import AddNetwork from '.'; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
|
|
title: 'Components/APP/AddNetwork', |
|
|
|
|
|
|
|
id: __filename, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const DefaultStory = () => { |
|
|
|
|
|
|
|
const MATIC_TOKEN_IMAGE_URL = './images/matic-token.png'; |
|
|
|
const MATIC_TOKEN_IMAGE_URL = './images/matic-token.png'; |
|
|
|
const ARBITRUM_IMAGE_URL = './images/arbitrum.svg'; |
|
|
|
const ARBITRUM_IMAGE_URL = './images/arbitrum.svg'; |
|
|
|
const OPTIMISM_IMAGE_URL = './images/optimism.svg'; |
|
|
|
const OPTIMISM_IMAGE_URL = './images/optimism.svg'; |
|
|
|
|
|
|
|
|
|
|
|
const FEATURED_RPCS = [ |
|
|
|
export default { |
|
|
|
|
|
|
|
title: 'Components/APP/AddNetwork', |
|
|
|
|
|
|
|
id: __filename, |
|
|
|
|
|
|
|
argTypes: { |
|
|
|
|
|
|
|
onBackClick: { |
|
|
|
|
|
|
|
action: 'onBackClick', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onAddNetworkClick: { |
|
|
|
|
|
|
|
action: 'onAddNetworkClick', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onAddNetworkManuallyClick: { |
|
|
|
|
|
|
|
action: 'onAddNetworkManuallyClick', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
featuredRPCS: { |
|
|
|
|
|
|
|
control: 'array', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
args: { |
|
|
|
|
|
|
|
featuredRPCS: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
chainId: '0x89', |
|
|
|
chainId: '0x89', |
|
|
|
nickname: 'Polygon Mumbai', |
|
|
|
nickname: 'Polygon Mumbai', |
|
|
@ -45,9 +57,10 @@ export const DefaultStory = () => { |
|
|
|
imageUrl: ARBITRUM_IMAGE_URL, |
|
|
|
imageUrl: ARBITRUM_IMAGE_URL, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
return <AddNetwork featuredRPCS={FEATURED_RPCS} />; |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => <AddNetwork {...args} />; |
|
|
|
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default'; |
|
|
|
DefaultStory.storyName = 'Default'; |
|
|
|