@redacto.io/consent-sdk-react 7.0.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -371,6 +371,7 @@ export const manageConsent = async ({
371
371
  consentClient,
372
372
  nominatorContact,
373
373
  dataElementUuids,
374
+ productUuid,
374
375
  }: {
375
376
  organizationId: string;
376
377
  workspaceId: string;
@@ -381,6 +382,7 @@ export const manageConsent = async ({
381
382
  consentClient?: BaseUrlContextValue['consentClient'];
382
383
  nominatorContact?: string;
383
384
  dataElementUuids?: string[];
385
+ productUuid?: string;
384
386
  }): Promise<boolean | null> => {
385
387
  try {
386
388
  // Ensure we have a valid token before making the API call
@@ -400,6 +402,7 @@ export const manageConsent = async ({
400
402
  consentClient,
401
403
  nominatorContact,
402
404
  dataElementUuids,
405
+ productUuid,
403
406
  });
404
407
  return result;
405
408
  } catch (error: any) {
@@ -421,6 +424,7 @@ export const manageConsent = async ({
421
424
  consentClient,
422
425
  nominatorContact,
423
426
  dataElementUuids,
427
+ productUuid,
424
428
  });
425
429
  }
426
430
  console.error(`Error ${action} consent:`, error);
@@ -111,7 +111,7 @@ export default function AdvancedTable<TData extends Record<string, any>>({
111
111
  const meta = (table.options.meta as any) || {};
112
112
  const onRowClick = meta.onRowClick;
113
113
  const handleRowClick = onRowClick
114
- ? (e: React.MouseEvent) => {
114
+ ? () => {
115
115
  onRowClick(row.original, row);
116
116
  }
117
117
  : undefined;