Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Feb 20, 2024
1 parent c3848c9 commit c656ccd
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions app/components/homeComponents/fortuneNumberSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,7 @@ export default function FortuneNumberSection() {
Fortune numbers
</div>
<div className='flex justify-between'>
<CopyToClipboard
onCopy={() => toast('Copied all available Fortune numbers to clipboard', { type: 'success' })}
text={
account?.refferal_code
?.filter((c) => !c.isUsed)
.map((c) => c.code)
.join(', ') || ''
}>
<span className='text-[#C66722] text-sm leading-6 font-medium cursor-pointer'>Copy all</span>
</CopyToClipboard>
<span className='text-[#C66722] text-sm leading-6 font-medium cursor-pointer'></span>
<button
onClick={() => {
onOpen()
Expand All @@ -83,14 +74,12 @@ export default function FortuneNumberSection() {
</span>
</button>
</div>
<div className='flex flex-col gap-2 max-h-[152px] overflow-auto pr-2'>
{account?.refferal_code?.map((ref) => (
<RefCode refCode={ref} key={ref.code} />
))}
</div>
<div className='text-[#C66722] text-sm leading-[18px] '>
A new set of fortune numbers will be generated after all 5 current numbers are used.
<div className='flex flex-col gap-2 h-[152px] overflow-auto pr-2 justify-center items-center'>
<div className='text-[#C66722] text-sm text-center'>
The Dragon takes all your Fortune numbers far away
</div>
</div>
<div className='text-[#C66722] text-sm h-[54px] '></div>
</section>
</>
)
Expand Down

0 comments on commit c656ccd

Please sign in to comment.