@@ -25,7 +25,7 @@ export const AwardNotComplete: FC<Props> = ({ award }) => {
|
||||
window.location.reload()
|
||||
},
|
||||
onError: (err: any) => {
|
||||
console.log(err)
|
||||
toast.error(err?.response?.data?.msg)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -37,7 +37,7 @@ export const AwardNotComplete: FC<Props> = ({ award }) => {
|
||||
<p className="font-normal text-lg text-primary-text-color">{award?.score}</p>
|
||||
<Cup className="size-4" color="#11212D" />
|
||||
</div>
|
||||
<button onClick={handleUse} className="w-fit ">استفاده</button>
|
||||
<button disabled={isPending} onClick={handleUse} className={`w-fit ${isPending ? "opacity-50 cursor-not-allowed" : ""}`}>استفاده</button>
|
||||
{/* <ProgressCircle percentage={75} /> */}
|
||||
</div>
|
||||
<div className="flex flex-col items-start gap-3">
|
||||
|
||||
@@ -30,15 +30,15 @@ export const StatusBox = () => {
|
||||
// icon: <Coin1 color="#292D32" variant="Bold" className="size-[40px]" />,
|
||||
// value: data?.data?.user?.walletBalance
|
||||
// },
|
||||
{
|
||||
name: "star",
|
||||
title: "امتیاز شرکت در قرعه کشی",
|
||||
icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />,
|
||||
value: data?.data?.user?.score
|
||||
},
|
||||
// {
|
||||
// name: "star",
|
||||
// title: "امتیاز شرکت در قرعه کشی",
|
||||
// icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />,
|
||||
// value: data?.data?.user?.score
|
||||
// },
|
||||
{
|
||||
name: "score-total",
|
||||
title: "امتیاز",
|
||||
title: "امتیاز شرکت در قرعه کشی",
|
||||
icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />,
|
||||
value: user?.score,
|
||||
secondaryValue: user?.totalScore
|
||||
|
||||
@@ -17,7 +17,15 @@ const columnConfigs: colConfig[] | [] = [
|
||||
return deviceIdProfit ?? profit ?? "";
|
||||
}
|
||||
},
|
||||
{ accessor: "deviceId.score", header: "امتیاز" },
|
||||
{
|
||||
accessor: "score", header: "امتیاز",
|
||||
cellRenderer: (info) => {
|
||||
const rowData = info.row.original;
|
||||
const deviceIdScore = rowData?.deviceId?.score;
|
||||
const score = rowData?.score;
|
||||
return deviceIdScore ?? score ?? "";
|
||||
}
|
||||
},
|
||||
{ accessor: "deviceType", header: "مدل دستگاه" },
|
||||
{ accessor: "IMEI", header: "شماره IMEI" },
|
||||
{ accessor: "installationDate", header: "تاریخ نصب", cellRenderer: (info) => info.getValue() && <p style={{ direction: "ltr" }}>{formatDateToPersian(info.getValue())}</p> },
|
||||
|
||||
Reference in New Issue
Block a user