Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 23, 2024
1 parent 87153c2 commit a16aab0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions src/modules/Whitelist/stepAirdrop/Step/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,15 @@ export default function ItemCommunity({
<Flex direction="column" gap="8px" flex={1}>
<Flex direction={["column", "row"]} justifyContent="space-between" gap={[1, 4]}>
<Flex direction="column" w="100%">
<Flex gap={2}>
<Flex gap={2} w="100%">
<div className={cx(s.itemCommunity__tag, s[AirdropText[content?.airdropType].toLowerCase()])}>{AirdropText[content?.airdropType]}</div>
<div className={s.itemCommunity__title}>{content?.title}</div>
{!!content?.right.title && (
<div className={s.itemCommunity__point} style={{ alignSelf: "flex-end", width: "100%" }}>
{content?.right.title}
{content?.right.tooltip && <>{content?.right.tooltip}</>}
</div>
)}
</Flex>
{!!content?.desc && (
<div
Expand All @@ -95,17 +101,6 @@ export default function ItemCommunity({
</Flex>
}
</Flex>
<Flex direction={["row", 'column']} justifyContent={["space-between", "flex-start"]}>
<div className={s.itemCommunity__point}>
{content?.right.title}
{content?.right.tooltip && <>{content?.right.tooltip}</>}
</div>
{!!content?.desc && (
<div className={s.itemCommunity__pointNote}>
{content?.right.desc}
</div>
)}
</Flex>
</Flex>
{!!content?.actionText && (
<Flex direction="column" w="100%" mt="8px">
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Whitelist/stepAirdrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const StepsAirdrop = () => {
actionHandle: handleShareTw,
isActive: !!token,
right: {
title: raffleCode || '+1 raffle ticket',
title: `Your raffle code: ${raffleCode}` || '+1 raffle ticket',
desc: '',
tooltip: (
<Tooltip
Expand Down

0 comments on commit a16aab0

Please sign in to comment.