feat: update dashboard contents to include category names and format dates

This commit is contained in:
fredy.siswanto
2025-03-06 19:47:45 +07:00
parent 4754e75f59
commit b61235a3b5
4 changed files with 64 additions and 26 deletions
+38
View File
@@ -18,3 +18,41 @@ export type TNewsDetail = {
isPremium?: boolean
categories?: Array<string>
}
export type TTag = {
id: string
code: string
name: string
created_at: string
updated_at: string
}
export type TCategory = {
id: string
name: string
code: string
created_at: string
updated_at: string
}
export type Author = {
id: string
name: string
profile_picture: string
}
export type TKontents = {
id: string
title: string
content: string
featured_image: string
tags: TTag[]
categories: TCategory[]
is_premium: boolean
slug: string
author_id: string
live_at: string
created_at: string
updated_at: string
author: Author
}