@applica-software-guru/react-admin 1.5.285 → 1.5.288

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.
package/package.json CHANGED
@@ -106,5 +106,5 @@
106
106
  "type": "module",
107
107
  "types": "dist/index.d.ts",
108
108
  "typings": "dist/index.d.ts",
109
- "version": "1.5.285"
109
+ "version": "1.5.288"
110
110
  }
@@ -7,7 +7,7 @@ import React, { Children, PropsWithChildren, useCallback, useState } from 'react
7
7
  import { FieldValues, useFormContext } from 'react-hook-form';
8
8
 
9
9
  type ResponsiveButtonProps = {
10
- label?: string;
10
+ label?: string | React.ReactNode | JSX.Element | boolean | unknown;
11
11
  onClick: () => void;
12
12
  };
13
13
 
@@ -20,6 +20,7 @@ function ResponsiveButton(props: ResponsiveButtonProps): JSX.Element {
20
20
  },
21
21
  [props]
22
22
  );
23
+ // @ts-ignore - I need to allow the label prop to be a ReactNode
23
24
  return <EditButton {...props} onClick={handleClick} />;
24
25
  }
25
26