♻️ refactor private resource page

This commit is contained in:
Fred KISSIE
2026-06-16 22:29:03 +02:00
parent 6380079239
commit 4e7328a1cc
2 changed files with 5 additions and 46 deletions
+2 -4
View File
@@ -117,15 +117,13 @@ type ClientResourcesTableProps = {
orgId: string;
pagination: PaginationState;
rowCount: number;
initialFilterSite?: Selectedsite | null;
};
export default function PrivateResourcesTable({
internalResources,
orgId,
pagination,
rowCount,
initialFilterSite = null
rowCount
}: ClientResourcesTableProps) {
const router = useRouter();
const {
@@ -142,7 +140,7 @@ export default function PrivateResourcesTable({
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
const [selectedInternalResource, setSelectedInternalResource] =
useState<InternalResourceRow | null>();
useState<InternalResourceRow | null>(null);
const [isEditDialogOpen, setIsEditDialogOpen] = useState(false);
const [editingResource, setEditingResource] =
useState<InternalResourceRow | null>();