refactor: add created_at field to user response schema and update dashboard display
This commit is contained in:
parent
0f332fde79
commit
87616ef6bd
@ -21,6 +21,7 @@ const userResponseSchema = z.object({
|
|||||||
email: z.string().email(),
|
email: z.string().email(),
|
||||||
phone: z.string(),
|
phone: z.string(),
|
||||||
subscribe: subscribeResponseSchema,
|
subscribe: subscribeResponseSchema,
|
||||||
|
created_at: z.string(),
|
||||||
})
|
})
|
||||||
const usersResponseSchema = z.object({
|
const usersResponseSchema = z.object({
|
||||||
data: z.array(userResponseSchema),
|
data: z.array(userResponseSchema),
|
||||||
|
|||||||
@ -36,7 +36,7 @@ export const UsersPage = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Tanggal Daftar',
|
title: 'Tanggal Daftar',
|
||||||
data: 'subscribe.start_date',
|
data: 'created_at',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'User',
|
title: 'User',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user