fix bug
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2025-12-03 16:36:05 +03:30
parent 14e405ae4d
commit 3052b66fe3
3 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -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">
+7 -7
View File
@@ -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
+9 -1
View File
@@ -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> },