refactor: implement Tags component for improved tag display and update news types
This commit is contained in:
+3
-1
@@ -1,3 +1,5 @@
|
||||
import type { TTagResponse } from '~/apis/common/get-tags'
|
||||
|
||||
export type TNews = {
|
||||
title: string
|
||||
description: string
|
||||
@@ -14,7 +16,7 @@ type TNewsDetail = {
|
||||
author: string
|
||||
date: Date
|
||||
slug: string
|
||||
tags?: Array<string>
|
||||
tags?: TTagResponse[]
|
||||
isPremium?: boolean
|
||||
categories?: Array<string>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user