2022-06-30 17:46:38 +02:00
|
|
|
import React from 'react';
|
2023-02-16 20:23:29 +01:00
|
|
|
import NftDefaultImage from '.';
|
2022-06-30 17:46:38 +02:00
|
|
|
|
|
|
|
export default {
|
2023-02-16 20:23:29 +01:00
|
|
|
title: 'Components/App/NftDefaultImage',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-06-30 17:46:38 +02:00
|
|
|
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 }}>
|
2023-02-16 20:23:29 +01:00
|
|
|
<NftDefaultImage {...args} />
|
2022-06-30 17:46:38 +02:00
|
|
|
</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 }}>
|
2023-02-16 20:23:29 +01:00
|
|
|
<NftDefaultImage {...args} />
|
2022-06-30 17:46:38 +02:00
|
|
|
</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
|
2023-02-16 20:23:29 +01:00
|
|
|
handleImageClick: () => window.alert('NftDefaultImage clicked!'),
|
2022-06-30 17:46:38 +02:00
|
|
|
};
|