部分军团长
This commit is contained in:
parent
b1c951cb06
commit
491f13b172
|
|
@ -1114,5 +1114,6 @@
|
||||||
"Number of boards":"董事会数量",
|
"Number of boards":"董事会数量",
|
||||||
"Number of holders":"持有人数量",
|
"Number of holders":"持有人数量",
|
||||||
"total revenue":"总收益",
|
"total revenue":"总收益",
|
||||||
"revenue":"收益"
|
"revenue":"收益",
|
||||||
|
"purchase":"购买"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1241,5 +1241,6 @@
|
||||||
"Number of boards":"Number of boards",
|
"Number of boards":"Number of boards",
|
||||||
"Number of holders":"Number of holders",
|
"Number of holders":"Number of holders",
|
||||||
"total revenue":"total revenue",
|
"total revenue":"total revenue",
|
||||||
"revenue":"revenue"
|
"revenue":"revenue",
|
||||||
|
"purchase":"purchase"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
import { useTranslation } from 'contexts/Localization'
|
import { useTranslation } from 'contexts/Localization'
|
||||||
import { useReferralNormalConfigInfo } from 'state/referral/hooks'
|
import { useReferralNormalConfigInfo, useReferralCommanderConfigInfo } from 'state/referral/hooks'
|
||||||
import { Flex, Button, Modal, Image } from '@pancakeswap/uikit'
|
import { Flex, Button, Modal, Image } from '@pancakeswap/uikit'
|
||||||
import TextFlex from './TextFlex'
|
import TextFlex from './TextFlex'
|
||||||
import FlexCom from './FlexCom'
|
import FlexCom from './FlexCom'
|
||||||
|
|
@ -50,12 +50,19 @@ const ImageDiv = styled(Image)`
|
||||||
|
|
||||||
const BuyNftModal: React.FC = () => {
|
const BuyNftModal: React.FC = () => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
const referralCommanderConfigInfo = useReferralCommanderConfigInfo()
|
||||||
const referralRewardInfo = useReferralNormalConfigInfo()
|
const referralRewardInfo = useReferralNormalConfigInfo()
|
||||||
// const onDismiss = () => {}
|
// const onDismiss = () => {}
|
||||||
return (
|
return (
|
||||||
<ModalDiv title={t('Buy commander NFT')}>
|
<ModalDiv title={`${t('purchase')}${referralCommanderConfigInfo.properties.name}`}>
|
||||||
<Flex alignItems="center" flexWrap="wrap" justifyContent="center">
|
<Flex alignItems="center" flexWrap="wrap" justifyContent="center">
|
||||||
<ImageDiv src="/images/recommend/logo.svg" width={250} height={250} marginBottom="20px" />
|
<ImageDiv
|
||||||
|
src={referralCommanderConfigInfo.properties.cover as string}
|
||||||
|
width={250}
|
||||||
|
height={250}
|
||||||
|
marginBottom="20px"
|
||||||
|
/>
|
||||||
|
{/* <ImageDiv src="/images/recommend/logo.svg" width={250} height={250} marginBottom="20px" /> */}
|
||||||
<InfoDiv>
|
<InfoDiv>
|
||||||
<TextFlex
|
<TextFlex
|
||||||
text={t('Upgrade recommendation rights, can enjoy the share of secondary recommendation')}
|
text={t('Upgrade recommendation rights, can enjoy the share of secondary recommendation')}
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ const Nft: React.FC = () => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const account = useAccount()
|
const account = useAccount()
|
||||||
|
|
||||||
const referralIsCommander = useReferralIsCommander()
|
// const referralIsCommander = useReferralIsCommander()
|
||||||
// const referralIsCommander = true
|
const referralIsCommander = false
|
||||||
console.log('referralIsCommander:', referralIsCommander)
|
console.log('referralIsCommander:', referralIsCommander)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(fetchReferralInfoAsync(account))
|
dispatch(fetchReferralInfoAsync(account))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue