2022-06-30 17:46:38 +02:00
|
|
|
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';
|
|
|
|
|
2022-09-12 17:32:09 +02:00
|
|
|
export const HandleImageClick = (args) => (
|
2022-06-30 17:46:38 +02:00
|
|
|
<div style={{ width: 200, height: 200 }}>
|
|
|
|
<CollectibleDefaultImage {...args} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
2022-09-12 17:32:09 +02:00
|
|
|
HandleImageClick.args = {
|
2022-06-30 17:46:38 +02:00
|
|
|
// eslint-disable-next-line no-alert
|
|
|
|
handleImageClick: () => window.alert('CollectibleDefaultImage clicked!'),
|
|
|
|
};
|