mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-16 18:06:39 +00:00
refresh button in clients page
This commit is contained in:
@@ -8,13 +8,17 @@ import { DataTable } from "@app/components/ui/data-table";
|
||||
interface DataTableProps<TData, TValue> {
|
||||
columns: ColumnDef<TData, TValue>[];
|
||||
data: TData[];
|
||||
onRefresh?: () => void;
|
||||
isRefreshing?: boolean;
|
||||
addClient?: () => void;
|
||||
}
|
||||
|
||||
export function ClientsDataTable<TData, TValue>({
|
||||
columns,
|
||||
data,
|
||||
addClient
|
||||
addClient,
|
||||
onRefresh,
|
||||
isRefreshing
|
||||
}: DataTableProps<TData, TValue>) {
|
||||
return (
|
||||
<DataTable
|
||||
@@ -25,6 +29,8 @@ export function ClientsDataTable<TData, TValue>({
|
||||
searchPlaceholder="Search clients..."
|
||||
searchColumn="name"
|
||||
onAdd={addClient}
|
||||
onRefresh={onRefresh}
|
||||
isRefreshing={isRefreshing}
|
||||
addButtonText="Add Client"
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user