部分军团长

This commit is contained in:
myf 2022-04-25 09:43:46 +08:00
parent 0cee519744
commit 5b32d70245
6 changed files with 26 additions and 11 deletions

View File

@ -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":"的提成!"
}

View File

@ -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"
}

View File

@ -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>
)

View File

@ -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>

View File

@ -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>
</>
)

View File

@ -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))