From 97094ad0fb5a54c9b870e37414296ad89148e40a Mon Sep 17 00:00:00 2001 From: nguyenlejoe Date: Wed, 13 Dec 2023 15:08:34 -0800 Subject: [PATCH] lint --- .../NFTFloorPriceView/NFTFloorPriceView.tsx | 2 +- .../NFTSalesCountView/NFTSalesCountView.tsx | 2 +- .../NFTs/NFTDetailView/NFTDetailView.tsx | 110 ++++++++++-------- 3 files changed, 61 insertions(+), 53 deletions(-) diff --git a/src/components/Molecules/NFTs/NFTFloorPriceView/NFTFloorPriceView.tsx b/src/components/Molecules/NFTs/NFTFloorPriceView/NFTFloorPriceView.tsx index a993b234..5b6c66ea 100644 --- a/src/components/Molecules/NFTs/NFTFloorPriceView/NFTFloorPriceView.tsx +++ b/src/components/Molecules/NFTs/NFTFloorPriceView/NFTFloorPriceView.tsx @@ -104,7 +104,7 @@ export const NFTFloorPriceView: React.FC = ({ }); return ( -
+
Floor Price
diff --git a/src/components/Molecules/NFTs/NFTSalesCountView/NFTSalesCountView.tsx b/src/components/Molecules/NFTs/NFTSalesCountView/NFTSalesCountView.tsx index 77f753dd..2b152b5a 100644 --- a/src/components/Molecules/NFTs/NFTSalesCountView/NFTSalesCountView.tsx +++ b/src/components/Molecules/NFTs/NFTSalesCountView/NFTSalesCountView.tsx @@ -68,7 +68,7 @@ export const NFTSalesCountView: React.FC = ({ }); return ( -
+
Sales History
diff --git a/src/components/Organisms/NFTs/NFTDetailView/NFTDetailView.tsx b/src/components/Organisms/NFTs/NFTDetailView/NFTDetailView.tsx index 625bec97..ccde4ae3 100644 --- a/src/components/Organisms/NFTs/NFTDetailView/NFTDetailView.tsx +++ b/src/components/Organisms/NFTs/NFTDetailView/NFTDetailView.tsx @@ -30,72 +30,80 @@ export const NFTDetailView: React.FC = ({ })(); }, [chain_name, collection_address, token_id]); - return ( -
- +
{maybeResult.match({ - None: () =>
- -
, + None: () => ( +
+ {" "} + +
+ ), Some: (result) => { - return - {result.contract_name} # - {result.nft_data.token_id?.toString()}{" "} - + return ( + + {result.contract_name} # + {result.nft_data.token_id?.toString()}{" "} + + ); }, })} -
{maybeResult.match({ - None: () =>
-
+ None: () => ( +
+
-
- Attributes +
+ Attributes -
- {[1, 2, 3, 4, 5, 6, 7, 8].map((o, i) => { - return ( - - ); - })} -
-
-
, - Some: (result) => { - return
- - -
- Attributes - -
- {result.nft_data.external_data?.attributes.map( - (attrs, i) => { +
+ {[1, 2, 3, 4, 5, 6, 7, 8].map((o, i) => { return ( -
-

- {attrs.trait_type} -

-

{attrs.value}

-
+ size={GRK_SIZES.LARGE} + /> ); - } - )} + })} +
-
+ ), + Some: (result) => { + return ( +
+ + +
+ Attributes + +
+ {result.nft_data.external_data?.attributes.map( + (attrs, i) => { + return ( +
+

+ {attrs.trait_type} +

+

{attrs.value}

+
+ ); + } + )} +
+
+
+ ); }, })}