部分军团长
This commit is contained in:
parent
0cee519744
commit
5b32d70245
|
|
@ -1116,5 +1116,7 @@
|
||||||
"total revenue":"总收益",
|
"total revenue":"总收益",
|
||||||
"revenue":"收益",
|
"revenue":"收益",
|
||||||
"purchase":"购买",
|
"purchase":"购买",
|
||||||
"Enter a keyword search":"输入关键字搜索"
|
"Enter a keyword search":"输入关键字搜索",
|
||||||
|
"By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins":"使用页面右上方的邀请,可邀请新用户进入,并在用户购买币后获得",
|
||||||
|
"The commission":"的提成!"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1243,5 +1243,7 @@
|
||||||
"total revenue":"total revenue",
|
"total revenue":"total revenue",
|
||||||
"revenue":"revenue",
|
"revenue":"revenue",
|
||||||
"purchase":"purchase",
|
"purchase":"purchase",
|
||||||
"Enter a keyword search":"Enter a keyword search"
|
"Enter a keyword search":"Enter a keyword search",
|
||||||
|
"By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins":"By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins",
|
||||||
|
"The commission":"The commission!"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,11 @@ import styled from 'styled-components'
|
||||||
import { useTranslation } from 'contexts/Localization'
|
import { useTranslation } from 'contexts/Localization'
|
||||||
import { Button, useModal, Text } from '@pancakeswap/uikit'
|
import { Button, useModal, Text } from '@pancakeswap/uikit'
|
||||||
import { inviteReceive } from 'services/referral'
|
import { inviteReceive } from 'services/referral'
|
||||||
import { useReferralNormalConfigInfo, useReferralRewardInfo } from 'state/referral/hooks'
|
import {
|
||||||
|
useReferralNormalConfigInfo,
|
||||||
|
useReferralCommanderConfigInfo,
|
||||||
|
useReferralRewardInfo,
|
||||||
|
} from 'state/referral/hooks'
|
||||||
import FlexCom from './FlexCom'
|
import FlexCom from './FlexCom'
|
||||||
import BuyNftModal from './BuyNftModal'
|
import BuyNftModal from './BuyNftModal'
|
||||||
import HeaderMain from './HeaderMain'
|
import HeaderMain from './HeaderMain'
|
||||||
|
|
@ -54,6 +58,7 @@ const ConnectedCom: React.FC = () => {
|
||||||
console.log('referralNormalConfigInfo:', referralNormalConfigInfo)
|
console.log('referralNormalConfigInfo:', referralNormalConfigInfo)
|
||||||
const referralRewardInfo = useReferralRewardInfo()
|
const referralRewardInfo = useReferralRewardInfo()
|
||||||
console.log('referralRewardInfo:', referralRewardInfo)
|
console.log('referralRewardInfo:', referralRewardInfo)
|
||||||
|
const referralCommanderConfigInfo = useReferralCommanderConfigInfo()
|
||||||
const getInviteReceive = async () => {
|
const getInviteReceive = async () => {
|
||||||
await inviteReceive()
|
await inviteReceive()
|
||||||
}
|
}
|
||||||
|
|
@ -81,9 +86,12 @@ const ConnectedCom: React.FC = () => {
|
||||||
<UpBtn onClick={onBuyModal}>{t('Upgrade commander')}</UpBtn>
|
<UpBtn onClick={onBuyModal}>{t('Upgrade commander')}</UpBtn>
|
||||||
</FooterBtn>
|
</FooterBtn>
|
||||||
<FooterDiv>
|
<FooterDiv>
|
||||||
<TextDiv color="textSubtle">{t('each time')}</TextDiv>
|
<TextDiv>{`${t(
|
||||||
|
'By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins',
|
||||||
|
)}${referralCommanderConfigInfo.dividendFirst / 10000}%${t('The commission')}`}</TextDiv>
|
||||||
|
{/* <TextDiv color="textSubtle">{t('each time')}</TextDiv>
|
||||||
<TextDiv color="textSubtle">{t('last bid')}</TextDiv>
|
<TextDiv color="textSubtle">{t('last bid')}</TextDiv>
|
||||||
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv>
|
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv> */}
|
||||||
</FooterDiv>
|
</FooterDiv>
|
||||||
</MainDiv>
|
</MainDiv>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -140,9 +140,12 @@ const RegimentalCom: React.FC = () => {
|
||||||
{/* <UpBtn>{t('Upgrade commander')}</UpBtn> */}
|
{/* <UpBtn>{t('Upgrade commander')}</UpBtn> */}
|
||||||
</FooterBtn>
|
</FooterBtn>
|
||||||
<FooterDiv>
|
<FooterDiv>
|
||||||
<TextDiv color="textSubtle">{t('each time')}</TextDiv>
|
<TextDiv>{`${t(
|
||||||
|
'By using the invitation at the top right of the page, new users can be invited to enter and obtained after users purchase coins',
|
||||||
|
)}${referralCommanderConfigInfo.dividendFirst / 10000}%${t('The commission')}`}</TextDiv>
|
||||||
|
{/* <TextDiv color="textSubtle">{t('each time')}</TextDiv>
|
||||||
<TextDiv color="textSubtle">{t('last bid')}</TextDiv>
|
<TextDiv color="textSubtle">{t('last bid')}</TextDiv>
|
||||||
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv>
|
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv> */}
|
||||||
</FooterDiv>
|
</FooterDiv>
|
||||||
</MainDiv>
|
</MainDiv>
|
||||||
</ContentDiv>
|
</ContentDiv>
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,9 @@ const UnunitedCom: React.FC = () => {
|
||||||
</HeadingDiv>
|
</HeadingDiv>
|
||||||
<UnlockButtonDiv />
|
<UnlockButtonDiv />
|
||||||
<FooterDiv>
|
<FooterDiv>
|
||||||
<TextDiv color="textSubtle">{t('each time')}</TextDiv>
|
{/* <TextDiv color="textSubtle">{t('each time')}</TextDiv>
|
||||||
<TextDiv color="textSubtle">{t('last bid')}</TextDiv>
|
<TextDiv color="textSubtle">{t('last bid')}</TextDiv>
|
||||||
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv>
|
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv> */}
|
||||||
</FooterDiv>
|
</FooterDiv>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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 = false
|
// const referralIsCommander = false
|
||||||
console.log('referralIsCommander:', referralIsCommander)
|
console.log('referralIsCommander:', referralIsCommander)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(fetchReferralInfoAsync(account))
|
dispatch(fetchReferralInfoAsync(account))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue