refactor: improve type definitions in UiTable, handle potential undefined data in SubscribePlanPage
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import DT, { type Config, type ConfigColumns } from 'datatables.net-dt'
|
||||
import DataTable, { type DataTableSlots } from 'datatables.net-react'
|
||||
import DT from 'datatables.net-dt'
|
||||
import DataTable, { type DataTableProps } from 'datatables.net-react'
|
||||
import React from 'react'
|
||||
|
||||
type UiTableProperties = {
|
||||
data: any[] // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
columns: ConfigColumns[]
|
||||
slots?: DataTableSlots
|
||||
options?: Config
|
||||
title: string
|
||||
}
|
||||
} & DataTableProps
|
||||
|
||||
const renderPaginationIcon = (icon: string) => {
|
||||
return `<div class="pagination-icon">${icon}</div>`
|
||||
|
||||
Reference in New Issue
Block a user