feat: enhance USERS data structure with idTransaction and update UsersPage to display it

This commit is contained in:
fredy.siswanto
2025-02-24 14:23:08 +07:00
parent 1c0176ac4c
commit 1cd5b0e848
2 changed files with 20 additions and 4 deletions
+5 -3
View File
@@ -5,9 +5,9 @@ import { Pagination } from '~/components/ui/pagination'
import { USERS } from './data'
export const UsersPage = () => {
type TColorBadge = 'Baru' | 'Premium' | 'Pembayaran'
type TColorBadge = 'Baru' | 'Premium' | 'Pembayaran'
export const UsersPage = () => {
const getStatusBadge = (status: TColorBadge) => {
const statusColors = {
Baru: 'bg-[#DFE5FF] text-[#4C5CA0]',
@@ -80,7 +80,9 @@ export const UsersPage = () => {
<td>{user.date}</td>
<td>
{user.name}
<div className="text-sm text-gray-500">id: 5512446588</div>
<div className="text-sm text-gray-500">
id: {user.idTransaction}
</div>
</td>
<td>{user.email}</td>
<td>{user.category}</td>