diff --git a/package.json b/package.json index 71d0ef09..c9e83e26 100644 --- a/package.json +++ b/package.json @@ -1,37 +1,37 @@ { "name": "data-dex", - "version": "1.14.6", + "version": "1.15.1", "description": "The Itheum Data DEX enables you to trade your data using web3 tech", "dependencies": { "@chakra-ui/icons": "2.1.1", "@chakra-ui/react": "2.8.2", "@emotion/react": "11.11.4", - "@emotion/styled": "11.11.0", + "@emotion/styled": "11.11.5", "@hookform/resolvers": "3.3.4", "@itheum/sdk-mx-data-nft": "3.4.0", - "@itheum/sdk-mx-enterprise": "0.2.0", - "@multiversx/sdk-core": "12.19.0", - "@multiversx/sdk-dapp": "2.28.8", - "@multiversx/sdk-native-auth-client": "1.0.7", - "@multiversx/sdk-network-providers": "2.3.0", + "@itheum/sdk-mx-enterprise": "0.3.0", + "@multiversx/sdk-core": "13.0.1", + "@multiversx/sdk-dapp": "2.31.3", + "@multiversx/sdk-native-auth-client": "1.0.8", + "@multiversx/sdk-network-providers": "2.4.3", "@peerme/sdk": "0.2.1", - "@sentry/react": "7.103.0", - "@tanstack/match-sorter-utils": "8.11.8", - "@tanstack/react-table": "8.13.2", - "axios": "1.6.7", + "@sentry/react": "7.110.1", + "@tanstack/match-sorter-utils": "8.15.1", + "@tanstack/react-table": "8.16.0", + "axios": "1.6.8", "bignumber.js": "9.1.2", "dotenv": "16.4.5", - "framer-motion": "11.0.6", + "framer-motion": "11.1.3", "mime": "4.0.1", "moment": "2.30.1", "react": "18.2.0", "react-dom": "18.2.0", - "react-hook-form": "7.50.1", - "react-icons": "5.0.1", - "react-router-dom": "6.22.2", + "react-hook-form": "7.51.3", + "react-icons": "5.1.0", + "react-router-dom": "6.22.3", "web-vitals": "3.5.2", - "yup": "1.3.3", - "zustand": "4.5.1" + "yup": "1.4.0", + "zustand": "4.5.2" }, "scripts": { "start": "vite dev", diff --git a/src/components/Faucet/Faucet.tsx b/src/components/Faucet/Faucet.tsx index 38853167..2637bccb 100644 --- a/src/components/Faucet/Faucet.tsx +++ b/src/components/Faucet/Faucet.tsx @@ -5,7 +5,7 @@ import { Address } from "@multiversx/sdk-core/out"; import { useGetNetworkConfig } from "@multiversx/sdk-dapp/hooks"; import { useGetAccountInfo } from "@multiversx/sdk-dapp/hooks/account"; import { useGetPendingTransactions } from "@multiversx/sdk-dapp/hooks/transactions"; -import { CHAIN_TOKEN_SYMBOL } from "libs/config"; +import { CHAIN_TOKEN_SYMBOL, IS_DEVNET } from "libs/config"; import { FaucetContract } from "libs/MultiversX/faucet"; const Faucet = ({ tileBoxW, tileBoxH }: any) => { @@ -18,7 +18,7 @@ const Faucet = ({ tileBoxW, tileBoxH }: any) => { useEffect(() => { // hasPendingTransactions will fire with false during init and then move from true to false each time a TX is done... // ... so if it's 'false' we need check and prevent faucet from being used too often - if (chainID === "D" && mxAddress && mxFaucetContract && !hasPendingTransactions) { + if (IS_DEVNET && mxAddress && mxFaucetContract && !hasPendingTransactions) { mxFaucetContract.getFaucetTime(new Address(mxAddress)).then((lastUsedTime) => { const timeNow = new Date().getTime(); diff --git a/src/components/ImageSlider.tsx b/src/components/ImageSlider.tsx index fe31c951..8cdf7e27 100644 --- a/src/components/ImageSlider.tsx +++ b/src/components/ImageSlider.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from "react"; import { ArrowBackIcon, ArrowForwardIcon } from "@chakra-ui/icons"; -import { Box, Container, Flex, IconButton, Image, Text } from "@chakra-ui/react"; +import { Box, Container, Flex, IconButton, Image, AspectRatio, Text } from "@chakra-ui/react"; import { motion } from "framer-motion"; import { DEFAULT_NFT_IMAGE } from "libs/mxConstants"; import Card3DAnimation from "./Card3DAnimation"; @@ -70,16 +70,24 @@ const ImageSlider: React.FC = (props) => { backfaceVisibility: "hidden", position: "absolute", }}> - { - currentTarget.src = DEFAULT_NFT_IMAGE; - }} - /> + {imageUrls[nextImageIndex].includes("mp4") ? ( + + + + {" "} + + ) : ( + { + currentTarget.src = DEFAULT_NFT_IMAGE; + }} + /> + )} {makeFlip && ( = (props) => { onAnimationComplete={() => { setImageIndex(nextImageIndex); }}> - { - currentTarget.src = DEFAULT_NFT_IMAGE; - }} - /> + {imageUrls[nextImageIndex].includes("mp4") ? ( + +