Commit 411148fe by Arjun Jhukal

updated the player issue in new dashboard

parent d2c06f2b
...@@ -36,7 +36,7 @@ export default function UserCoinCard() { ...@@ -36,7 +36,7 @@ export default function UserCoinCard() {
<SilverCoinIcon /> <SilverCoinIcon />
<div className="coins"> <div className="coins">
<strong className="text-[12px] leading-4 font-[600] text-[#93E0D8] block">{data?.data[0]?.value || 0}</strong> <strong className="text-[12px] leading-4 font-[600] text-[#93E0D8] block">{data?.data[0]?.value || 0}</strong>
<span className="text-[9px] mt-[-2px] block">Silver Coins</span> <span className="text-[9px] mt-[-2px] block">Sweeps Coins</span>
</div> </div>
</Box> </Box>
</Box > </Box >
......
...@@ -131,7 +131,7 @@ export default function GeneralPageLiting() { ...@@ -131,7 +131,7 @@ export default function GeneralPageLiting() {
))} ))}
</select> </select>
</div> </div>
<Pagination count={data?.data?.pagination.total_pages || 1} <Pagination count={data?.data?.pagination?.total_pages || 1}
page={page} page={page}
onChange={(_, value) => setPage(value)} variant="outlined" shape="rounded" sx={{ gap: "8px" }} /> onChange={(_, value) => setPage(value)} variant="outlined" shape="rounded" sx={{ gap: "8px" }} />
</div> </div>
......
...@@ -173,7 +173,7 @@ export default function PlayerListing() { ...@@ -173,7 +173,7 @@ export default function PlayerListing() {
))} ))}
</select> </select>
</div> </div>
<Pagination count={data?.data?.pagination.total_pages || 1} <Pagination count={data?.data?.pagination?.total_pages || 1}
page={page} page={page}
onChange={(_, value) => setPage(value)} variant="outlined" shape="rounded" sx={{ gap: "8px" }} /> onChange={(_, value) => setPage(value)} variant="outlined" shape="rounded" sx={{ gap: "8px" }} />
</div> </div>
......
...@@ -67,7 +67,7 @@ export default function DepositHistoryPage() { ...@@ -67,7 +67,7 @@ export default function DepositHistoryPage() {
<div className="flex justify-between items-center mt-4 px-8 py-6"> <div className="flex justify-between items-center mt-4 px-8 py-6">
<Pagination count={data?.data?.pagination.total_pages || 1} <Pagination count={data?.data?.pagination?.total_pages || 1}
page={page} page={page}
onChange={(_, value) => setPage(value)} variant="outlined" shape="rounded" sx={{ gap: "8px" }} /> onChange={(_, value) => setPage(value)} variant="outlined" shape="rounded" sx={{ gap: "8px" }} />
<div> <div>
......
"use client"
import { Refresh } from '@wandersonalwes/iconsax-react' import { Refresh } from '@wandersonalwes/iconsax-react'
import React from 'react' import React from 'react'
export default function BalanceRefresh({ label, icon }: { label: string; icon: boolean }) { export default function BalanceRefresh({ label, icon, onClick }: { label: string; icon: boolean; onClick?: () => void }) {
return ( return (
<p className='text-[10px] lg:text-[12px] leading-[120%] font-[500] bg-primary-grad py-1 px-2 rounded-[12px] flex items-center gap-1 max-w-fit cursor-pointer'> <p className='text-[10px] lg:text-[12px] leading-[120%] font-[500] bg-primary-grad py-1 px-2 rounded-[12px] flex items-center gap-1 max-w-fit cursor-pointer' onClick={() => window.location.reload()} >
{icon ? <Refresh size={12} /> : ""} {icon ? <Refresh size={12} /> : ""}
{label || ""} {label || ""}
</p> </p>
......
...@@ -30,7 +30,7 @@ export const CardPasswordField = ({ password }: { password: string }) => { ...@@ -30,7 +30,7 @@ export const CardPasswordField = ({ password }: { password: string }) => {
!showPassword ? <Eye size={14} className='text-secondary' /> : <EyeSlash size={14} className='text-secondary' /> !showPassword ? <Eye size={14} className='text-secondary' /> : <EyeSlash size={14} className='text-secondary' />
} }
</p> </p>
<BalanceRefresh label="Reset" icon={false} /> {/* <BalanceRefresh label="Reset" icon={false} /> */}
</div> </div>
</div> </div>
</> </>
......
...@@ -49,10 +49,8 @@ export default function CredentialsCard({ cred, balance }: { cred: CredentialsPr ...@@ -49,10 +49,8 @@ export default function CredentialsCard({ cred, balance }: { cred: CredentialsPr
</li> </li>
</ul> </ul>
<div className="action__group mt-4 flex justify-between gap-4"> <div className="action__group mt-4 flex justify-between gap-4">
<Button variant='contained' color='primary' <Link href={"/buy-coins"} className='ss-btn bg-primary-grad flex justify-center items-center gap-1'><Coin />Buy Coins</Link>
startIcon={<Coin />} <Link href={cred.game_url} target='_blank' className='ss-btn bg-secondary-grad flex justify-center items-center text-[#426A66] gap-2 '>
>Buy Coins</Button>
<Link href={cred.game_url} className='ss-btn bg-secondary-grad flex justify-center items-center text-[#426A66] gap-2 '>
<TapIcon /> <TapIcon />
Play Game Play Game
</Link> </Link>
......
...@@ -12,9 +12,8 @@ export default async function GameCredentialsPage() { ...@@ -12,9 +12,8 @@ export default async function GameCredentialsPage() {
<p className='text-[11px] lg:text-[14px]'>To start playing and cashing out your winnings, you’ll need a crypto wallet to purchase E-Credits and receive payouts. Don't worry—it’s quick and easy!</p> <p className='text-[11px] lg:text-[14px]'>To start playing and cashing out your winnings, you’ll need a crypto wallet to purchase E-Credits and receive payouts. Don't worry—it’s quick and easy!</p>
</div> </div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-2 lg:gap-4"> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 3xl:grid-cols-4 gap-2 lg:gap-4">
{creds?.data.length ? creds?.data.map((cred) => ( {creds?.data.length ? creds?.data.map((cred) => (
<div className="col-span-1" key={cred.full_name}> <div className="col-span-1" key={cred.full_name}>
<CredentialsCard cred={cred} balance={balance} /> <CredentialsCard cred={cred} balance={balance} />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment