fix the skeleton of table
This commit is contained in:
parent
fa9aa8eedd
commit
e27774c45a
|
|
@ -469,18 +469,6 @@ export function ProjectManagementPage() {
|
|||
{formatCurrency(String(value))}
|
||||
</span>
|
||||
);
|
||||
case "renewed_duration": {
|
||||
const raw = value as any;
|
||||
const numeric = typeof raw === "string" ? Number(raw) : (raw as number);
|
||||
if (numeric === undefined || numeric === null || Number.isNaN(numeric)) {
|
||||
return <span className="text-gray-300">-</span>;
|
||||
}
|
||||
return (
|
||||
<span dir="ltr" className="font-medium flex justify-end gap-1 items-center text-gray-300">
|
||||
<span>روز</span> {toPersianDigits(numeric)}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
case "deviation_from_program":
|
||||
case "cost_deviation":
|
||||
return (
|
||||
|
|
@ -566,7 +554,7 @@ export function ProjectManagementPage() {
|
|||
<TableBody>
|
||||
{loading ? (
|
||||
// Skeleton loading rows (compact)
|
||||
Array.from({ length: 10 }).map((_, index) => (
|
||||
Array.from({ length: 20 }).map((_, index) => (
|
||||
<TableRow key={`skeleton-${index}`} className="text-sm leading-tight h-8">
|
||||
{columns.map((column) => (
|
||||
<TableCell
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user