diff --git a/src/components/ImageSlider.tsx b/src/components/ImageSlider.tsx index 18eb596c..39a30327 100644 --- a/src/components/ImageSlider.tsx +++ b/src/components/ImageSlider.tsx @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react"; import { motion } from "framer-motion"; import { ArrowLeft, ArrowRight, Image } from "lucide-react"; import { cn } from "libs/utils"; +import { Button } from "libComponents/Button"; interface ImageSliderProps { imageUrls: string[]; @@ -60,28 +61,35 @@ const ImageSlider: React.FC = (props) => { }}> - { - setImageIndex(nextImageIndex); - }}> - - + {makeFlip && ( + { + setImageIndex(nextImageIndex); + }}> + + + )} {imageUrls.length > 1 && ( -
- goToPreviousImage(true)} /> - - goToNextImage(true)} /> +
+ +
)}
diff --git a/src/components/RecentDataNftsSection.tsx b/src/components/RecentDataNftsSection.tsx index 6258edf4..f745009e 100644 --- a/src/components/RecentDataNftsSection.tsx +++ b/src/components/RecentDataNftsSection.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react"; import { DataNft, Offer } from "@itheum/sdk-mx-data-nft/out"; import { useGetNetworkConfig } from "@multiversx/sdk-dapp/hooks"; import { getHealthCheckFromBackendApi, getRecentOffersFromBackendApi } from "../libs/backend-api"; -import { ThreeDCard } from "./TreeDCard"; +import { ThreeDCard } from "./ThreeDCard"; import { IAddress } from "@multiversx/sdk-core/out"; import BigNumber from "bignumber.js"; import { Address } from "@multiversx/sdk-core/out"; diff --git a/src/components/TreeDCard.tsx b/src/components/ThreeDCard.tsx similarity index 100% rename from src/components/TreeDCard.tsx rename to src/components/ThreeDCard.tsx diff --git a/src/components/TrendingSection.tsx b/src/components/TrendingSection.tsx index 5518ff39..293b87db 100644 --- a/src/components/TrendingSection.tsx +++ b/src/components/TrendingSection.tsx @@ -1,17 +1,15 @@ import { DataNft } from "@itheum/sdk-mx-data-nft/out"; import { useGetNetworkConfig } from "@multiversx/sdk-dapp/hooks"; import { getHealthCheckFromBackendApi, getTrendingFromBackendApi } from "libs/backend-api"; -import { TrendingNft } from "libs/types"; import React, { useEffect, useState } from "react"; -import { ThreeDCard } from "./TreeDCard"; -import { convertWeiToEsdt } from "libs/utils"; +import { ThreeDCard } from "./ThreeDCard"; import toast from "react-hot-toast"; -interface NftItem { - title: string; - supply: number; - price: number; -} +// interface NftItem { +// title: string; +// supply: number; +// price: number; +// } type TrendingDataCreationNftsType = { nonce: number; tokenIdentifier: string;