@pnkx-lib/ui 1.9.323 → 1.9.324
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/es/ui/index.js
CHANGED
|
@@ -776,7 +776,9 @@ const BulkActions = ({
|
|
|
776
776
|
handleActivate,
|
|
777
777
|
handleRestore,
|
|
778
778
|
status,
|
|
779
|
-
typeBulkaction
|
|
779
|
+
typeBulkaction,
|
|
780
|
+
isApproved = false
|
|
781
|
+
// Chỉ sử dụng khi là danh sách icon
|
|
780
782
|
}) => {
|
|
781
783
|
//! State
|
|
782
784
|
const listIcon = [
|
|
@@ -849,7 +851,7 @@ const BulkActions = ({
|
|
|
849
851
|
name: "Hủy duyệt",
|
|
850
852
|
title: "Xác nhận hủy duyệt",
|
|
851
853
|
content: "Bạn có chắc chắn muốn hủy duyệt không?",
|
|
852
|
-
arrShow: [CATEGORY_LIST_ENUM?.ACTIVE],
|
|
854
|
+
arrShow: isApproved ? [CATEGORY_LIST_ENUM?.ACTIVE] : [],
|
|
853
855
|
showTitle: true
|
|
854
856
|
},
|
|
855
857
|
{
|
|
@@ -893,6 +895,7 @@ const BulkActions = ({
|
|
|
893
895
|
showTitle: true
|
|
894
896
|
}
|
|
895
897
|
];
|
|
898
|
+
console.log("listIcon", listIcon);
|
|
896
899
|
const { open, shouldRender, toggle } = useToggle();
|
|
897
900
|
const [notifyContent, setNotifyContent] = useState({
|
|
898
901
|
title: "",
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ interface IBulkActionsProps extends Partial<BulkActionHandlers> {
|
|
|
6
6
|
quantity?: number;
|
|
7
7
|
status?: unknown;
|
|
8
8
|
typeBulkaction?: TypeBulkActions;
|
|
9
|
+
isApproved?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export type TListIcon = {
|
|
11
12
|
icon: React.ReactNode;
|
|
@@ -19,5 +20,5 @@ export type TListIcon = {
|
|
|
19
20
|
name?: string;
|
|
20
21
|
showTitle?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare const BulkActions: ({ quantity, handleDelete, handleSubmitForApproval, handleCancelSubmission, handleApprove, handleCancelApproval, handleReject, handleDeactivate, handleActivate, handleRestore, status, typeBulkaction, }: IBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const BulkActions: ({ quantity, handleDelete, handleSubmitForApproval, handleCancelSubmission, handleApprove, handleCancelApproval, handleReject, handleDeactivate, handleActivate, handleRestore, status, typeBulkaction, isApproved, }: IBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export {};
|