diff --git a/app/apis/common/get-ads.ts b/app/apis/common/get-ads.ts index 743594a..ddb7026 100644 --- a/app/apis/common/get-ads.ts +++ b/app/apis/common/get-ads.ts @@ -8,6 +8,7 @@ const adResponseSchema = z.object({ url: z.string(), start_date: z.string(), end_date: z.string(), + clicked: z.number(), }) const adsResponseSchema = z.object({ data: z.array(adResponseSchema), diff --git a/app/pages/dashboard-advertisements/index.tsx b/app/pages/dashboard-advertisements/index.tsx index 8cb5973..ce748a9 100644 --- a/app/pages/dashboard-advertisements/index.tsx +++ b/app/pages/dashboard-advertisements/index.tsx @@ -51,6 +51,10 @@ export const AdvertisementsPage = () => { return formatDate(data) }, }, + { + title: 'Diklik', + data: 'clicked', + }, { title: 'Action', data: 'id', @@ -66,7 +70,7 @@ export const AdvertisementsPage = () => { /> ) }, - 5: (value: string, _type: unknown, data: TAdResponse) => ( + 6: (value: string, _type: unknown, data: TAdResponse) => (