You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
874 B
43 lines
874 B
2 years ago
|
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!'),
|
||
|
};
|