1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 21:00:13 +01:00
metamask-extension/ui/components/app/nft-details/nft-details.stories.js
Nidhi Kumari 33cc8d587a
NFT: Replaced all the instances of collectibles with NFTs (#17741)
* replaced all the instances of collectibles with nfts

* updated actions

* updated e2e seeder

* updated confirm Approve test

* updated test dapp change

* updated test dapp change

* nit fix

* nit fix

* updated casing and snapshots

* updated casinG

* added migrations

* updated ,igration

* updated 078.test

* updated tests for 078 migration

* updated migration

* updated 078 index.js
2023-02-17 00:53:29 +05:30

47 lines
1.0 KiB
JavaScript

import React from 'react';
import NftDetails from './nft-details';
const nft = {
name: 'Catnip Spicywright',
tokenId: '1124157',
address: '0x06012c8cf97bead5deae237070f9587f8e7a266d',
image: './catnip-spicywright.png',
imageThumbnail: 'https://www.cryptokitties.co/.../1124157',
description:
"Good day. My name is Catnip Spicywight, which got me teased a lot in high school. If I want to put low fat mayo all over my hamburgers, I shouldn't have to answer to anyone about it, am I right? One time I beat Arlene in an arm wrestle.",
lastSale: {
event_timestamp: '2023-01-18T21:51:23',
total_price: '4900000000000000',
},
};
export default {
title: 'Components/App/NftsDetail',
argTypes: {
nft: {
control: 'object',
},
},
args: {
nft,
},
};
export const DefaultStory = (args) => {
return <NftDetails {...args} />;
};
DefaultStory.storyName = 'Default';
export const NoImage = (args) => {
return <NftDetails {...args} />;
};
NoImage.args = {
nft: {
...nft,
image: undefined,
},
};