@appcorp/fusion-storybook 0.1.16 → 0.1.17

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.
@@ -752,13 +752,13 @@ export const useAdmissionModule = () => {
752
752
  order: 1,
753
753
  },
754
754
  {
755
- enabled: true,
755
+ enabled: (row) => (row === null || row === void 0 ? void 0 : row.status) === ADMISSION_STATUS.PENDING,
756
756
  handleOnClick: handleEdit,
757
757
  label: t("rowActionsEdit"),
758
758
  order: 2,
759
759
  },
760
760
  {
761
- enabled: false,
761
+ enabled: (row) => (row === null || row === void 0 ? void 0 : row.status) === ADMISSION_STATUS.PENDING,
762
762
  handleOnClick: handleDelete,
763
763
  label: t("rowActionsDelete"),
764
764
  order: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",