调整盲盒、ido兑换、公告
This commit is contained in:
parent
661b9f99b1
commit
08bd178bf5
|
|
@ -1284,5 +1284,6 @@
|
|||
"GIVING": "礼物",
|
||||
"PROPS": "道具",
|
||||
"rarity": "稀有度",
|
||||
"success": "成功"
|
||||
"success": "成功",
|
||||
"Exchange closed": "兑换已结束"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ const Menu = (props) => {
|
|||
}, [userInfo])
|
||||
const sign = useSignLogin()
|
||||
const handleLogin = async (connectorID: ConnectorNames) => {
|
||||
console.log(connectorID)
|
||||
await login(connectorID)
|
||||
setHasWalletLogin(true)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,12 +37,12 @@ export default {
|
|||
referralChef: {
|
||||
97: '0x0866962d208e91ea8804db3f547cccf22fe39ea7',
|
||||
56: '0x0866962d208e91ea8804db3f547cccf22fe39ea7', // NEED CHANGE 邀请或则军团长
|
||||
5: '0x9C08E33271ea01da9FbC72aE7bDa8FEdAa41ee59',
|
||||
5: '0xafa64f22a09fc197949c45281b2ad381a2b623a3',
|
||||
},
|
||||
referralRewardChef: {
|
||||
97: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e',
|
||||
56: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e', // NEED CHANGE 邀请或则军团长收益
|
||||
5: '0x0fb12ffe4b38730b80c26f44fa540eabfd03a30e',
|
||||
5: '0x9F59C9e98C79c129541d2b316D17F7F97089d067',
|
||||
},
|
||||
idoPurchase: {
|
||||
97: '0x2f562A9fE0325501A6Aa92cd9e2081B026fC35aa',
|
||||
|
|
|
|||
|
|
@ -1411,5 +1411,6 @@
|
|||
"GIVING": "GIVING",
|
||||
"PROPS": "PROPS",
|
||||
"rarity": "rarity",
|
||||
"success": "success"
|
||||
"success": "success",
|
||||
"Exchange closed": "Exchange closed"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { useTranslation } from 'contexts/Localization'
|
|||
// import Container from 'components/Layout/Container'
|
||||
import { getAnnouncementPage, getAnnouncementDetail } from 'services/announcement'
|
||||
import { Text, Flex, Image, Input, Heading } from '@pancakeswap/uikit'
|
||||
import Empty from 'components/Empty'
|
||||
import ListItem from './components/ListItem'
|
||||
import Detail from './components/Detail'
|
||||
|
||||
|
|
@ -120,6 +121,10 @@ const TextAll = styled(Text)`
|
|||
padding: 20px 0;
|
||||
color: #999;
|
||||
`
|
||||
const EmptyFlex = styled(Flex)`
|
||||
padding: 100px 0;
|
||||
justify-content: center;
|
||||
`
|
||||
|
||||
const Announcement: React.FC = () => {
|
||||
const { t } = useTranslation()
|
||||
|
|
@ -204,12 +209,18 @@ const Announcement: React.FC = () => {
|
|||
</SearchBtn>
|
||||
</InputMain>
|
||||
</SearchDiv>
|
||||
<ListMain>
|
||||
{renderContent()}
|
||||
<Flex justifyContent="center" padding={10}>
|
||||
<Pagination count={count} onChange={pageChange} page={pageNum} />
|
||||
</Flex>
|
||||
</ListMain>
|
||||
{list.length > 0 ? (
|
||||
<ListMain>
|
||||
{renderContent()}
|
||||
<Flex justifyContent="center" padding={10}>
|
||||
<Pagination count={count} onChange={pageChange} page={pageNum} />
|
||||
</Flex>
|
||||
</ListMain>
|
||||
) : (
|
||||
<EmptyFlex>
|
||||
<Empty />
|
||||
</EmptyFlex>
|
||||
)}
|
||||
</TableDiv>
|
||||
)}
|
||||
</MainDiv>
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ const HolderPoolBoardCard: React.FC<NodeCardProps> = ({ board, account, boardsDa
|
|||
</Text>
|
||||
<PriceCoin>
|
||||
<Text fontSize="16px" color="#1FC7D4">
|
||||
{board.estimatedProfit}
|
||||
{board.estimatedProfit.toFixed(3)}
|
||||
</Text>
|
||||
<Text fontSize="12px" color="#9BE5EB">
|
||||
{hccPriceUsdt ? (hccPriceUsdt * board.estimatedProfit).toFixed(3) : 0} USDT
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ const HeaderStatus: React.FC<HeaderStatusProps> = ({ status, roundDetail }) => {
|
|||
|
||||
return (
|
||||
<TimeText>
|
||||
{/* {status === 'close' && t('Exchange closed')} */}
|
||||
{status === 'none' && t('Exchange not commenced')}
|
||||
|
||||
{status === 'proceed' && (
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const Exchange: React.FC = () => {
|
|||
const getRound = useGetRound()
|
||||
const init = async () => {
|
||||
const detail = await getRound()
|
||||
if (!detail || detail.endTime < new Date().getTime() || roundDetail?.remaining === 0) {
|
||||
if (!detail || detail.endTime < new Date().getTime()) {
|
||||
setStatus('none')
|
||||
} else if (detail.beginTime < new Date().getTime() && detail.endTime > new Date().getTime()) {
|
||||
setStatus('proceed')
|
||||
|
|
|
|||
Loading…
Reference in New Issue