refresh button for role, user, share-link, invitation table

This commit is contained in:
Pallavi Kumari
2025-10-04 13:31:48 +05:30
parent ccd2773331
commit b1e212721e
9 changed files with 127 additions and 17 deletions

View File

@@ -10,12 +10,16 @@ interface DataTableProps<TData, TValue> {
columns: ColumnDef<TData, TValue>[];
data: TData[];
createRole?: () => void;
onRefresh?: () => void;
isRefreshing?: boolean;
}
export function RolesDataTable<TData, TValue>({
columns,
data,
createRole
createRole,
onRefresh,
isRefreshing
}: DataTableProps<TData, TValue>) {
const t = useTranslations();
@@ -29,6 +33,8 @@ export function RolesDataTable<TData, TValue>({
searchPlaceholder={t('accessRolesSearch')}
searchColumn="name"
onAdd={createRole}
onRefresh={onRefresh}
isRefreshing={isRefreshing}
addButtonText={t('accessRolesAdd')}
/>
);