feat: add time

This commit is contained in:
2026-08-04 14:05:19 +03:30
parent ba7147ff59
commit e3071b8692
2 changed files with 51 additions and 7 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ import {
getPurchaseStatusLabel,
} from '@/types/purchase';
import { PackageName } from '@/types/package';
import { formatPrice, formatDate, getProductTypeLabel, getPurchaseFinalPrice } from '@/lib/utils';
import { formatPrice, formatDate, formatTime, getProductTypeLabel, getPurchaseFinalPrice } from '@/lib/utils';
import { MagnifyingGlassIcon, ArrowPathIcon } from '@heroicons/react/24/outline';
const statusBadgeClass = (status: number): string => {
@@ -212,7 +212,7 @@ export default function PurchasesPage() {
<th className="px-4 py-3">قیمت نهایی</th>
<th className="px-4 py-3">منبع پرداخت</th>
<th className="px-4 py-3">وضعیت</th>
<th className="px-4 py-3">تاریخ</th>
<th className="px-4 py-3">تاریخ و ساعت</th>
</tr>
</thead>
<tbody className="divide-y divide-gray-200 dark:divide-gray-800">
@@ -254,7 +254,7 @@ export default function PurchasesPage() {
</span>
</td>
<td className="px-4 py-3.5 text-xs text-gray-500 dark:text-gray-400 whitespace-nowrap">
{formatDate(purchase.created_at)}
{formatDate(purchase.created_at)} {formatTime(purchase.created_at)}
</td>
</tr>
))}