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',
|
|
|
|
},
|
Multichain NFT network badges (#19029)
* adding badges for nfts
* fixing default nft styling issue
* adding multichain flag, making borderRadius inline
* Apply suggestions from code review
Co-authored-by: George Marshall <george.marshall@consensys.net>
* fixing imports
* removing nullcheck for guaranteed fields
* moving badgewrapper UI into multichain component
* using Box for button, removing inline style, border-radius for NFT default image
* adding nft badges to NFT Details page
* nits, snap update
* fixing/refactoring nftdefaultimage display, adding clickable, removing handleimageclick, refactor NFTItem, required props
* editing nft-default-image story, test, and snap
* Updating to fix positioning, use Box props to reduce CSS and BEM naming conventions
* moving minor styling to Box props, adding comment
* display block typo
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-06-02 17:01:51 +02:00
|
|
|
clickable: {
|
|
|
|
control: 'boolean',
|
2022-06-30 17:46:38 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
name: null,
|
|
|
|
tokenId: '12345',
|
Multichain NFT network badges (#19029)
* adding badges for nfts
* fixing default nft styling issue
* adding multichain flag, making borderRadius inline
* Apply suggestions from code review
Co-authored-by: George Marshall <george.marshall@consensys.net>
* fixing imports
* removing nullcheck for guaranteed fields
* moving badgewrapper UI into multichain component
* using Box for button, removing inline style, border-radius for NFT default image
* adding nft badges to NFT Details page
* nits, snap update
* fixing/refactoring nftdefaultimage display, adding clickable, removing handleimageclick, refactor NFTItem, required props
* editing nft-default-image story, test, and snap
* Updating to fix positioning, use Box props to reduce CSS and BEM naming conventions
* moving minor styling to Box props, adding comment
* display block typo
---------
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-06-02 17:01:51 +02:00
|
|
|
clickable: true,
|
2022-06-30 17:46:38 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
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';
|