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

@@ -9,11 +9,15 @@ import { useTranslations } from 'next-intl';
interface DataTableProps<TData, TValue> {
columns: ColumnDef<TData, TValue>[];
data: TData[];
onRefresh?: () => void;
isRefreshing?: boolean;
}
export function InvitationsDataTable<TData, TValue>({
columns,
data
data,
onRefresh,
isRefreshing
}: DataTableProps<TData, TValue>) {
const t = useTranslations();
@@ -26,6 +30,8 @@ export function InvitationsDataTable<TData, TValue>({
title={t('invite')}
searchPlaceholder={t('inviteSearch')}
searchColumn="email"
onRefresh={onRefresh}
isRefreshing={isRefreshing}
/>
);
}