mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-05 07:24:56 +01:00
43 lines
874 B
JavaScript
43 lines
874 B
JavaScript
import React from 'react';
|
|
import CollectibleDefaultImage from '.';
|
|
|
|
export default {
|
|
title: 'Components/App/CollectibleDefaultImage',
|
|
id: __filename,
|
|
argTypes: {
|
|
name: {
|
|
control: 'text',
|
|
},
|
|
tokenId: {
|
|
control: 'text',
|
|
},
|
|
handleImageClick: {
|
|
action: 'handleImageClick',
|
|
},
|
|
},
|
|
args: {
|
|
name: null,
|
|
tokenId: '12345',
|
|
handleImageClick: null,
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => (
|
|
<div style={{ width: 200, height: 200 }}>
|
|
<CollectibleDefaultImage {...args} />
|
|
</div>
|
|
);
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
export const HandleImageClick = (args) => (
|
|
<div style={{ width: 200, height: 200 }}>
|
|
<CollectibleDefaultImage {...args} />
|
|
</div>
|
|
);
|
|
|
|
HandleImageClick.args = {
|
|
// eslint-disable-next-line no-alert
|
|
handleImageClick: () => window.alert('CollectibleDefaultImage clicked!'),
|
|
};
|