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() window.location.reload()
}, },
onError: (err: any) => { 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> <p className="font-normal text-lg text-primary-text-color">{award?.score}</p>
<Cup className="size-4" color="#11212D" /> <Cup className="size-4" color="#11212D" />
</div> </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} /> */} {/* <ProgressCircle percentage={75} /> */}
</div> </div>
<div className="flex flex-col items-start gap-3"> <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]" />, // icon: <Coin1 color="#292D32" variant="Bold" className="size-[40px]" />,
// value: data?.data?.user?.walletBalance // value: data?.data?.user?.walletBalance
// }, // },
{ // {
name: "star", // name: "star",
title: "امتیاز شرکت در قرعه کشی", // title: "امتیاز شرکت در قرعه کشی",
icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />, // icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />,
value: data?.data?.user?.score // value: data?.data?.user?.score
}, // },
{ {
name: "score-total", name: "score-total",
title: "امتیاز", title: "امتیاز شرکت در قرعه کشی",
icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />, icon: <Star color="#292D32" variant="Bold" className="size-[40px]" />,
value: user?.score, value: user?.score,
secondaryValue: user?.totalScore secondaryValue: user?.totalScore
+9 -1
View File
@@ -17,7 +17,15 @@ const columnConfigs: colConfig[] | [] = [
return deviceIdProfit ?? profit ?? ""; 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: "deviceType", header: "مدل دستگاه" },
{ accessor: "IMEI", header: "شماره IMEI" }, { accessor: "IMEI", header: "شماره IMEI" },
{ accessor: "installationDate", header: "تاریخ نصب", cellRenderer: (info) => info.getValue() && <p style={{ direction: "ltr" }}>{formatDateToPersian(info.getValue())}</p> }, { accessor: "installationDate", header: "تاریخ نصب", cellRenderer: (info) => info.getValue() && <p style={{ direction: "ltr" }}>{formatDateToPersian(info.getValue())}</p> },