feat: enhance news API schema with author and categories details,
desc: update dashboard to display author names, and improve pagination button styles
This commit is contained in:
@@ -18,41 +18,3 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user