refactor: update table component types and enhance admin menu with category and tag

This commit is contained in:
Ardeman
2025-03-09 15:31:10 +08:00
parent 422c9cbfe2
commit 64bb369c59
6 changed files with 62 additions and 42 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
import DT, { type Config, type ConfigColumns } from 'datatables.net-dt'
import DataTable from 'datatables.net-react'
import DataTable, { type DataTableSlots } from 'datatables.net-react'
import React from 'react'
type UiTableProperties = {
data: any // eslint-disable-line @typescript-eslint/no-explicit-any
data: any[] // eslint-disable-line @typescript-eslint/no-explicit-any
columns: ConfigColumns[]
slots?: any // eslint-disable-line @typescript-eslint/no-explicit-any
slots?: DataTableSlots
options?: Config
title: string
}