调整军团长,董事会,首页
This commit is contained in:
parent
729696d648
commit
3a7be4d1f2
|
|
@ -1138,5 +1138,8 @@
|
||||||
"Holder": "持币人",
|
"Holder": "持币人",
|
||||||
"Board": "董事会",
|
"Board": "董事会",
|
||||||
"Whether to cancel": "是否取消",
|
"Whether to cancel": "是否取消",
|
||||||
"Please enter a number": "请输入数字"
|
"Please enter a number": "请输入数字",
|
||||||
|
"my wallet": "我的钱包",
|
||||||
|
"Copy the address": "复制地址",
|
||||||
|
"How to use": "如何使用"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1265,5 +1265,8 @@
|
||||||
"Holder": "Holder",
|
"Holder": "Holder",
|
||||||
"Board": "Board",
|
"Board": "Board",
|
||||||
"Whether to cancel": "Whether to cancel",
|
"Whether to cancel": "Whether to cancel",
|
||||||
"Please enter a number": "Please enter a number"
|
"Please enter a number": "Please enter a number",
|
||||||
|
"my wallet": "my wallet",
|
||||||
|
"Copy the address": "Copy the address",
|
||||||
|
"How to use": "How to use"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { Text, Flex } from '@pancakeswap/uikit'
|
||||||
interface InfoProps {
|
interface InfoProps {
|
||||||
title?: string
|
title?: string
|
||||||
content?: string
|
content?: string
|
||||||
publishTime?: number
|
publishTime?: string
|
||||||
top?: boolean
|
top?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -24,6 +24,24 @@ const FlexTitle = styled(Flex)`
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
${({ theme }) => theme.mediaQueries.xs} {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
${({ theme }) => theme.mediaQueries.lg} {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
const TextTitle = styled(Text)`
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: #333333;
|
||||||
|
${({ theme }) => theme.mediaQueries.xs} {
|
||||||
|
max-width: 100px;
|
||||||
|
}
|
||||||
|
${({ theme }) => theme.mediaQueries.lg} {
|
||||||
|
max-width: 747px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
const TextInfo = styled(Text)`
|
const TextInfo = styled(Text)`
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
@ -34,10 +52,22 @@ const TextInfo = styled(Text)`
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
${({ theme }) => theme.mediaQueries.xs} {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
${({ theme }) => theme.mediaQueries.lg} {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
const TextTime = styled(Text)`
|
const TextTime = styled(Text)`
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
|
${({ theme }) => theme.mediaQueries.xs} {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
${({ theme }) => theme.mediaQueries.lg} {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
const TextTop = styled(Flex)`
|
const TextTop = styled(Flex)`
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
@ -59,12 +89,12 @@ const ListItem: React.FC<InfoProps> = ({ title, content, publishTime, top = fals
|
||||||
<FlexTable>
|
<FlexTable>
|
||||||
<TableInfo>
|
<TableInfo>
|
||||||
<FlexTitle>
|
<FlexTitle>
|
||||||
{title}
|
<TextTitle>{title}</TextTitle>
|
||||||
{top ? <TextTop>{t('top')}</TextTop> : ''}
|
{top ? <TextTop>{t('top')}</TextTop> : ''}
|
||||||
</FlexTitle>
|
</FlexTitle>
|
||||||
<TextInfo>{content}</TextInfo>
|
<TextInfo>{content}</TextInfo>
|
||||||
</TableInfo>
|
</TableInfo>
|
||||||
<TextTime color="textSubtle">{publishTime}</TextTime>
|
<TextTime color="textSubtle">{publishTime?.split(' ')[0]}</TextTime>
|
||||||
</FlexTable>
|
</FlexTable>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,10 @@ const FlexMain = styled(Flex)`
|
||||||
`
|
`
|
||||||
|
|
||||||
const CardDiv = styled(Card)`
|
const CardDiv = styled(Card)`
|
||||||
padding: 20px;
|
padding: 10px 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
`
|
`
|
||||||
|
|
||||||
const CourseCom: React.FC = () => {
|
const CourseCom: React.FC = () => {
|
||||||
|
|
@ -96,11 +99,10 @@ const CourseCom: React.FC = () => {
|
||||||
<FirstPage>
|
<FirstPage>
|
||||||
<StyledPage px={['16px', '24px']} mx="auto" maxWidth="1200px">
|
<StyledPage px={['16px', '24px']} mx="auto" maxWidth="1200px">
|
||||||
<FlexMain>
|
<FlexMain>
|
||||||
<div>
|
|
||||||
<Stepper>
|
<Stepper>
|
||||||
{list.map((item, index) => (
|
{list.map((item, index) => (
|
||||||
<Step key={item.id} index={index} status={index % 2 ? 'past' : 'current'}>
|
<Step key={item.id} index={index} status={index % 2 ? 'past' : 'current'}>
|
||||||
<CardDiv>
|
<CardDiv style={{ height: '290px' }}>
|
||||||
<Heading>{item.title}</Heading>
|
<Heading>{item.title}</Heading>
|
||||||
{item.list.map((childItem) => {
|
{item.list.map((childItem) => {
|
||||||
return (
|
return (
|
||||||
|
|
@ -113,7 +115,6 @@ const CourseCom: React.FC = () => {
|
||||||
</Step>
|
</Step>
|
||||||
))}
|
))}
|
||||||
</Stepper>
|
</Stepper>
|
||||||
</div>
|
|
||||||
</FlexMain>
|
</FlexMain>
|
||||||
</StyledPage>
|
</StyledPage>
|
||||||
</FirstPage>
|
</FirstPage>
|
||||||
|
|
|
||||||
|
|
@ -84,12 +84,14 @@ const RegimentalCom: React.FC = () => {
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
const withdraw = useWithdraw()
|
const withdraw = useWithdraw()
|
||||||
const { toastSuccess } = useToast()
|
const { toastSuccess } = useToast()
|
||||||
|
const [gain, getGain] = useState(true)
|
||||||
const handleWithdraw = async () => {
|
const handleWithdraw = async () => {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
try {
|
try {
|
||||||
await withdraw()
|
await withdraw()
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
toastSuccess(t('Successfully claimed!'))
|
toastSuccess(t('Successfully claimed!'))
|
||||||
|
getGain(false)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
}
|
}
|
||||||
|
|
@ -110,9 +112,7 @@ const RegimentalCom: React.FC = () => {
|
||||||
<FlexCom name={t('total revenue')} value={`${(referralRewardInfo.inviteReward as number) || 0}(HCC)`} />
|
<FlexCom name={t('total revenue')} value={`${(referralRewardInfo.inviteReward as number) || 0}(HCC)`} />
|
||||||
<FlexCom
|
<FlexCom
|
||||||
name={t('revenue')}
|
name={t('revenue')}
|
||||||
value={`${
|
value={`${gain ? referralRewardInfo.inviteReward - referralRewardInfo.inviteRewardReceive || 0 : 0}(HCC)`}
|
||||||
((referralRewardInfo.inviteReward as number) - referralRewardInfo.inviteRewardReceive) as number
|
|
||||||
}(HCC)`}
|
|
||||||
/>
|
/>
|
||||||
<FlexCom
|
<FlexCom
|
||||||
name={t('First stage sharing ratio')}
|
name={t('First stage sharing ratio')}
|
||||||
|
|
@ -126,7 +126,7 @@ const RegimentalCom: React.FC = () => {
|
||||||
|
|
||||||
<FooterBtn>
|
<FooterBtn>
|
||||||
{referralCommanderConfigInfo?.receiveLimit <=
|
{referralCommanderConfigInfo?.receiveLimit <=
|
||||||
referralRewardInfo?.inviteReward - referralRewardInfo?.inviteRewardReceive ? (
|
referralRewardInfo?.inviteReward - referralRewardInfo?.inviteRewardReceive && gain ? (
|
||||||
<ButtonGet variant="secondary" disabled={loading} onClick={handleWithdraw}>
|
<ButtonGet variant="secondary" disabled={loading} onClick={handleWithdraw}>
|
||||||
{t('Claim now')}
|
{t('Claim now')}
|
||||||
</ButtonGet>
|
</ButtonGet>
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ const ContentUnunited = styled.div`
|
||||||
background: rgba(255, 255, 255, 0.39);
|
background: rgba(255, 255, 255, 0.39);
|
||||||
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
|
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
|
||||||
border-radius: 40px;
|
border-radius: 40px;
|
||||||
|
${({ theme }) => theme.mediaQueries.xs} {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
${({ theme }) => theme.mediaQueries.lg} {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const Nft: React.FC = () => {
|
const Nft: React.FC = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue