Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 19, 2024
1 parent 4f5f821 commit 8aaa3f2
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 74 deletions.
108 changes: 54 additions & 54 deletions src/modules/Whitelist/leaderBoard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,60 +391,60 @@ const LeaderBoard = () => {
);
},
},
{
id: 'modular',
label: (
<Flex
style={{
justifyContent: 'center',
alignItems: 'center',
alignSelf: 'center',
width: '100%',
gap: '4px',
}}
>
<p style={{ textTransform:'uppercase' }}>MODULAR POINTS</p>
<Tooltip
minW="220px"
bg="white"
boxShadow="rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;"
borderRadius="4px"
padding="8px"
label={
<Flex direction="column" color="black" opacity={0.7}>
<p>Modular Points are calculated from your holding & staking <strong>TIA</strong></p>
</Flex>
}
>
<img className={styles.tooltipIcon} src={`${CDN_URL_ICONS}/info-circle.svg`}/>
</Tooltip>
</Flex>
),
labelConfig,
config: {
borderBottom: 'none',
fontSize: '16px',
fontWeight: 500,
verticalAlign: 'middle',
letterSpacing: '-0.5px',
},
render(data: ILeaderBoardPoint) {
return (
<Flex
gap={3}
alignItems={'center'}
width={'100%'}
justifyContent={'center'}
>
<Flex alignItems={'center'} gap={'4px'}>
<Text className={styles.title}>
{formatCurrency(data?.celestia_point, 0, 0)}
</Text>
</Flex>
</Flex>
);
},
},
// {
// id: 'modular',
// label: (
// <Flex
// style={{
// justifyContent: 'center',
// alignItems: 'center',
// alignSelf: 'center',
// width: '100%',
// gap: '4px',
// }}
// >
// <p style={{ textTransform:'uppercase' }}>MODULAR POINTS</p>
// <Tooltip
// minW="220px"
// bg="white"
// boxShadow="rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;"
// borderRadius="4px"
// padding="8px"
// label={
// <Flex direction="column" color="black" opacity={0.7}>
// <p>Modular Points are calculated from your holding & staking <strong>TIA</strong></p>
// </Flex>
// }
// >
// <img className={styles.tooltipIcon} src={`${CDN_URL_ICONS}/info-circle.svg`}/>
// </Tooltip>
// </Flex>
// ),
// labelConfig,
// config: {
// borderBottom: 'none',
// fontSize: '16px',
// fontWeight: 500,
// verticalAlign: 'middle',
// letterSpacing: '-0.5px',
// },
// render(data: ILeaderBoardPoint) {
// return (
// <Flex
// gap={3}
// alignItems={'center'}
// width={'100%'}
// justifyContent={'center'}
// >
// <Flex alignItems={'center'} gap={'4px'}>
// <Text className={styles.title}>
// {formatCurrency(data?.celestia_point, 0, 0)}
// </Text>
// </Flex>
// </Flex>
// );
// },
// },
{
id: 'content',
label: (
Expand Down
40 changes: 20 additions & 20 deletions src/modules/Whitelist/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,26 +186,26 @@ const Steps = () => {
desc: 'per 1000 sats'
}
},
{
title: 'Are you a Modular Blockchain Pioneer?',
desc: 'The more TIA or staked TIA you hold, the more points you’ll get. Connect your Keplr wallet to prove the account ownership.',
actionText: isNeedClaimCelestiaPoint ? `Tweet to claim ${formatCurrency(allowCelestia.amount.unClaimedPoint, 0, 0)} pts` : 'How modular are you?',
actionHandle: isNeedClaimCelestiaPoint ? async () => {
handleShareTw();
await requestClaimCelestiaPoint(allowCelestia.status)
dispatch(requestReload())
} : onSignModular,
actionTextSecondary: isNeedClaimCelestiaPoint ? "Verify another wallet" : undefined,
actionHandleSecondary: isNeedClaimCelestiaPoint ? onSignModular : undefined,
isActive: !!token,
isDone: !!token,
step: MultiplierStep.modular,
image: "ic-modular-blockchain.svg",
right: {
title: '+100 PTS',
desc: 'per TIA'
}
},
// {
// title: 'Are you a Modular Blockchain Pioneer?',
// desc: 'The more TIA or staked TIA you hold, the more points you’ll get. Connect your Keplr wallet to prove the account ownership.',
// actionText: isNeedClaimCelestiaPoint ? `Tweet to claim ${formatCurrency(allowCelestia.amount.unClaimedPoint, 0, 0)} pts` : 'How modular are you?',
// actionHandle: isNeedClaimCelestiaPoint ? async () => {
// handleShareTw();
// await requestClaimCelestiaPoint(allowCelestia.status)
// dispatch(requestReload())
// } : onSignModular,
// actionTextSecondary: isNeedClaimCelestiaPoint ? "Verify another wallet" : undefined,
// actionHandleSecondary: isNeedClaimCelestiaPoint ? onSignModular : undefined,
// isActive: !!token,
// isDone: !!token,
// step: MultiplierStep.modular,
// image: "ic-modular-blockchain.svg",
// right: {
// title: '+100 PTS',
// desc: 'per TIA'
// }
// },
// {
// title: 'Want to upgrade your multiplier faster? Complete the two tasks above to find out how!',
// },
Expand Down

0 comments on commit 8aaa3f2

Please sign in to comment.