@pnkx-lib/ui 1.9.330 → 1.9.331

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.
Files changed (2) hide show
  1. package/es/ui/index.js +2 -2
  2. package/package.json +1 -1
package/es/ui/index.js CHANGED
@@ -56,7 +56,7 @@ export { ErrorBoundary } from './ErrorBoundary.js';
56
56
  import { CATEGORY_LIST_ENUM } from './CategoryStatus.js';
57
57
  export { CategoryStatus, badgeStatusCategoryConfig } from './CategoryStatus.js';
58
58
  import { useToggle } from '@pnkx-lib/core';
59
- import { isEmpty } from 'lodash';
59
+ import { isEmpty, isBoolean } from 'lodash';
60
60
  import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
61
61
  export { BreadcrumbHeading } from './BreadcrumbHeading.js';
62
62
  export { Card } from './Card.js';
@@ -853,7 +853,7 @@ const BulkActions = ({
853
853
  name: "Hủy duyệt",
854
854
  title: "Xác nhận hủy duyệt",
855
855
  content: "Bạn có chắc chắn muốn hủy duyệt không?",
856
- arrShow: isApproved ? [CATEGORY_LIST_ENUM?.ACTIVE] : [],
856
+ arrShow: isBoolean(isApproved) && !isApproved ? [] : [CATEGORY_LIST_ENUM?.ACTIVE],
857
857
  showTitle: true
858
858
  },
859
859
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.330",
4
+ "version": "1.9.331",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",