diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx index e8363cf..660f2aa 100644 --- a/src/components/Menu/index.tsx +++ b/src/components/Menu/index.tsx @@ -53,10 +53,8 @@ const Menu = (props) => { } const getDoc = async () => { const result = await getProjectDoc() - console.log(result) const { data } = result.data setDocumentAddress(data) - console.log(data) } // 钱包登录后 useEffect(() => { diff --git a/src/views/Bazaar/components/ContentShop.tsx b/src/views/Bazaar/components/ContentShop.tsx index f57042a..d096d01 100644 --- a/src/views/Bazaar/components/ContentShop.tsx +++ b/src/views/Bazaar/components/ContentShop.tsx @@ -4,6 +4,7 @@ import { useTranslation } from 'contexts/Localization' import { Flex, Text } from '@pancakeswap/uikit' import { useAccount } from 'state/userInfo/hooks' import useRefresh from 'hooks/useRefresh' +import { TOKEN_SYMBOL } from 'config/index' import ShopList from './ShopList' @@ -76,7 +77,7 @@ const ContentShop: React.FC = ({ list, getDetail }) => { {item.label} {t('trading value')} - 1000HCC + 1000{TOKEN_SYMBOL} ) diff --git a/src/views/BlindBox/component/Operation.tsx b/src/views/BlindBox/component/Operation.tsx index fe7a4b8..6c98cd0 100644 --- a/src/views/BlindBox/component/Operation.tsx +++ b/src/views/BlindBox/component/Operation.tsx @@ -2,6 +2,7 @@ import React from 'react' import styled from 'styled-components' import { useTranslation } from 'contexts/Localization' import { Flex, Text } from '@pancakeswap/uikit' +import { TOKEN_SYMBOL } from 'config/index' import StepCom from './StepCom' interface DetailProp { @@ -25,6 +26,14 @@ const DetailInfo = styled(Flex)` justify-content: space-between; align-items: center; ` +const HeaderFlex = styled(Flex)` + align-items: center; + justify-content: flex-end; +` +const HeaderText = styled(Text)` + color: #1fc7d4; + font-size: 24px; +` const Operation: React.FC = ({ detail }) => { const { t } = useTranslation() @@ -37,12 +46,10 @@ const Operation: React.FC = ({ detail }) => { {t('price')} - - - {detail.price} - - HCC - + + {detail.price} + {TOKEN_SYMBOL} + {t('quantity')} diff --git a/src/views/BlindBox/index.tsx b/src/views/BlindBox/index.tsx index 7c48e84..be4ea6f 100644 --- a/src/views/BlindBox/index.tsx +++ b/src/views/BlindBox/index.tsx @@ -125,7 +125,7 @@ const BlindBox: React.FC = () => { const [detail, setDetail] = useState({ series: '法式盛宴', price: 500, number: 1 }) return ( - + {/* */} { {t('compound')} {t('Estimated synthesis cost')} - -----HCC + -----{TOKEN_SYMBOL} diff --git a/src/views/Compound/index.tsx b/src/views/Compound/index.tsx index 3c28231..5888ec0 100644 --- a/src/views/Compound/index.tsx +++ b/src/views/Compound/index.tsx @@ -16,21 +16,21 @@ interface RoundDetailProps { const PageContent = styled.div` min-height: calc(100vh - 64px); - /* background-image: url('/images/nft/bg.svg'); + background-image: url('/images/nft/bg.svg'); background-size: cover; - background-repeat: no-repeat; */ + background-repeat: no-repeat; - background-image: url('/images/page/compound.jpg'); + /* background-image: url('/images/page/compound.jpg'); background-position: 50%; background-size: 60% 90%; - background-repeat: no-repeat; + background-repeat: no-repeat; */ ` const NftBox: React.FC = () => { return ( - - {/* */} + {/* */} + ) } diff --git a/src/views/Ido/components/GetCard.tsx b/src/views/Ido/components/GetCard.tsx index df785af..cd9962e 100644 --- a/src/views/Ido/components/GetCard.tsx +++ b/src/views/Ido/components/GetCard.tsx @@ -3,6 +3,7 @@ import dayjs from 'dayjs' import styled, { keyframes } from 'styled-components' import { useTranslation } from 'contexts/Localization' import { Flex, Text, Button, Input } from '@pancakeswap/uikit' +import { TOKEN_SYMBOL } from 'config/index' import { useHarvest } from '../hooks' interface GetCardProps { @@ -63,7 +64,10 @@ const ExchangeCard: React.FC = ({ price = 0, time = 0 }) => { )} {t('amount')}: - {price}HCC + + {price} + {TOKEN_SYMBOL} +