Skip to content

Commit

Permalink
update date
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Mar 26, 2024
1 parent 32bc29d commit ad339ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app/(private)/wish/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ export default function Page() {
<div className={`${Bangkok.className} text-xl font-bold`}>Your wish has been sent to the Dragon</div>
<div className='text-sm mt-4'>
The Dragon will respond to your
<br /> wishes at <span className='text-[##FFF7C4]'>10th April 2024</span>
<br /> wishes at{' '}
<span className='text-[##FFF7C4]'>
{moment(jackpotData?.jackpots?.[0]?.ended_at || new Date()).format('Do MMMM yyyy')}
</span>
</div>
<div className='mt-8 flex gap-4'>
{submittedGems.map((gem, index) => (
Expand Down Expand Up @@ -230,7 +233,9 @@ export default function Page() {
<div className={`${Bangkok.className} text-[#FEF368] text-xl font-bold text-center my-1`}>
Dragon Warrior
</div>
<div className='text-sm text-[#FFF7C4]'>10th April 2024</div>
<div className='text-sm text-[#FFF7C4]'>
{moment(jackpotData?.jackpots?.[0]?.ended_at || new Date()).format('Do MMMM yyyy')}
</div>
<div className='border-[3px] border-[#E3B480] bg-[rgba(0,0,0,0.39)] rounded p-[10px] text-sm mt-9'>
{shorten(jackpotData?.jackpots?.[0]?.winner_address, 8, 8)}
</div>
Expand Down Expand Up @@ -276,7 +281,9 @@ export default function Page() {
<Image src={Machine} alt='' className='w-[236px] h-[252px]' />
</div>
<div className='text-xs text-[#FFFFFF] mt-8 text-center'>
{`The Dragon will appear and fulfill your wish at 10th April 2024`}
{`The Dragon will appear and fulfill your wish at ${moment(
jackpotData?.jackpots?.[0]?.ended_at || new Date()
).format('Do MMMM yyyy')}`}
</div>
<div className='mt-4 flex gap-4 flex-wrap max-w-[90vw] items-center justify-center'>
{[...(Array(jackpotData.jackpots?.[0]?.slot).keys() as any)].map((index) => (
Expand Down
1 change: 1 addition & 0 deletions services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const GET_JACKPOT = gql`
max_star
winner_id
winning_numbers
ended_at
slot
}
}
Expand Down

0 comments on commit ad339ad

Please sign in to comment.