diff --git a/build.zip b/build.zip deleted file mode 100644 index b1dbf5a..0000000 Binary files a/build.zip and /dev/null differ diff --git a/src/views/Bazaar/components/AssetsInfo.tsx b/src/views/Bazaar/components/AssetsInfo.tsx index 6c55fe1..021d837 100644 --- a/src/views/Bazaar/components/AssetsInfo.tsx +++ b/src/views/Bazaar/components/AssetsInfo.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react' import styled from 'styled-components' import { useTranslation } from 'contexts/Localization' -import { Flex, Button, Text, Image } from '@pancakeswap/uikit' +import { Flex } from '@pancakeswap/uikit' import { getContract } from 'services/referral' import FlexCom from './FlexCom' diff --git a/src/views/Bazaar/components/TransactionRecord.tsx b/src/views/Bazaar/components/TransactionRecord.tsx index ee3bbef..a3712d2 100644 --- a/src/views/Bazaar/components/TransactionRecord.tsx +++ b/src/views/Bazaar/components/TransactionRecord.tsx @@ -97,9 +97,6 @@ const TdFlex = styled(Flex)` white-space: nowrap; text-overflow: ellipsis; ` -const TdImage = styled(Image)` - margin-right: 20px; -` const TdBtnFlex = styled(Flex)` width: 20%; flex-direction: column; diff --git a/src/views/Bazaar/hooks/index.ts b/src/views/Bazaar/hooks/index.ts index b53707e..63cd1ec 100644 --- a/src/views/Bazaar/hooks/index.ts +++ b/src/views/Bazaar/hooks/index.ts @@ -39,15 +39,6 @@ export const useApproveHcc = (tokenContract: Contract) => { return { onApprove: handleApprove } } -// 购买 -// export const useGetPurchase = () => { -// const data = async (id, params) => { -// const result = await getOfficialPurchase(id, params) -// console.log(result) -// return result -// } -// return data -// } // 交易记录 export const useGetPurchaseRecord = () => { @@ -68,7 +59,6 @@ export const useBuyTransaction = () => { const { num, hccPrice, otherPaymentPrice, timestamp, code, type, sign } = result const mintParams = [address, num, hccPrice, otherPaymentPrice, timestamp, code, type, sign] const res = await blindBox.mint(...mintParams) - console.log(res) return res } return transaction diff --git a/src/views/BlindBox/index.tsx b/src/views/BlindBox/index.tsx index 8f003ed..2b1c200 100644 --- a/src/views/BlindBox/index.tsx +++ b/src/views/BlindBox/index.tsx @@ -285,9 +285,7 @@ const BlindBox: React.FC = () => { setBuyNum(1) } const getTime = (date) => { - const date1 = dayjs() - const date2 = dayjs(date) - const time = date2.diff(date1) + const time = dayjs(date).diff(dayjs()) return time } diff --git a/src/views/NftBox/hooks/index.ts b/src/views/NftBox/hooks/index.ts index e3adc29..be96e40 100644 --- a/src/views/NftBox/hooks/index.ts +++ b/src/views/NftBox/hooks/index.ts @@ -12,15 +12,6 @@ export const useGetSelfPage = () => { return data } -// export const useGetNftDetail = () => { -// const data = async (token, params) => { -// const result = await getNftDetail(token, params) -// console.log(result) -// return result -// } -// return data -// } - export const useGetNftDetails = () => { const data = async (token, params) => { const result = await getNftDetails(token, params)