部分军团长
This commit is contained in:
parent
0cee519744
commit
5b32d70245
|
|
@ -1116,5 +1116,7 @@
|
|||
"total revenue":"总收益",
|
||||
"revenue":"收益",
|
||||
"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",
|
||||
"revenue":"revenue",
|
||||
"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 { Button, useModal, Text } from '@pancakeswap/uikit'
|
||||
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 BuyNftModal from './BuyNftModal'
|
||||
import HeaderMain from './HeaderMain'
|
||||
|
|
@ -54,6 +58,7 @@ const ConnectedCom: React.FC = () => {
|
|||
console.log('referralNormalConfigInfo:', referralNormalConfigInfo)
|
||||
const referralRewardInfo = useReferralRewardInfo()
|
||||
console.log('referralRewardInfo:', referralRewardInfo)
|
||||
const referralCommanderConfigInfo = useReferralCommanderConfigInfo()
|
||||
const getInviteReceive = async () => {
|
||||
await inviteReceive()
|
||||
}
|
||||
|
|
@ -81,9 +86,12 @@ const ConnectedCom: React.FC = () => {
|
|||
<UpBtn onClick={onBuyModal}>{t('Upgrade commander')}</UpBtn>
|
||||
</FooterBtn>
|
||||
<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('commission fee')}</TextDiv>
|
||||
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv> */}
|
||||
</FooterDiv>
|
||||
</MainDiv>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -140,9 +140,12 @@ const RegimentalCom: React.FC = () => {
|
|||
{/* <UpBtn>{t('Upgrade commander')}</UpBtn> */}
|
||||
</FooterBtn>
|
||||
<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('commission fee')}</TextDiv>
|
||||
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv> */}
|
||||
</FooterDiv>
|
||||
</MainDiv>
|
||||
</ContentDiv>
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ const UnunitedCom: React.FC = () => {
|
|||
</HeadingDiv>
|
||||
<UnlockButtonDiv />
|
||||
<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('commission fee')}</TextDiv>
|
||||
<TextDiv color="textSubtle">{t('commission fee')}</TextDiv> */}
|
||||
</FooterDiv>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ const Nft: React.FC = () => {
|
|||
const dispatch = useDispatch()
|
||||
const account = useAccount()
|
||||
|
||||
// const referralIsCommander = useReferralIsCommander()
|
||||
const referralIsCommander = false
|
||||
const referralIsCommander = useReferralIsCommander()
|
||||
// const referralIsCommander = false
|
||||
console.log('referralIsCommander:', referralIsCommander)
|
||||
useEffect(() => {
|
||||
dispatch(fetchReferralInfoAsync(account))
|
||||
|
|
|
|||
Loading…
Reference in New Issue