updates
This commit is contained in:
@@ -50,6 +50,7 @@ export type ResourcePageProps<TClient extends ResourcePageClient> = UseResourceP
|
||||
paramKey?: string
|
||||
onRowClick?: (row: ResourceItem<TClient>) => void
|
||||
toolbar?: ReactNodeOrRender<TClient>
|
||||
tableHeader?: ReactNodeOrRender<TClient>
|
||||
|
||||
}
|
||||
|
||||
@@ -64,6 +65,7 @@ export function ResourcePage<TClient extends ResourcePageClient>({
|
||||
paramKey,
|
||||
onRowClick,
|
||||
toolbar,
|
||||
tableHeader,
|
||||
extraParams,
|
||||
}: ResourcePageProps<TClient>) {
|
||||
type TItem = ResourceItem<TClient>
|
||||
@@ -112,7 +114,8 @@ export function ResourcePage<TClient extends ResourcePageClient>({
|
||||
toolbar={resolvedToolbar}
|
||||
>
|
||||
<Card>
|
||||
<CardContent>
|
||||
<CardContent className="space-y-4">
|
||||
{tableHeader && (typeof tableHeader === "function" ? tableHeader(context) : tableHeader)}
|
||||
<DataTable
|
||||
columns={columns}
|
||||
data={items}
|
||||
|
||||
Reference in New Issue
Block a user