Conditionally display "Reversal Action" column in DeletionHistory based on user role

This commit is contained in:
Swapnil Bendal
2025-01-17 16:22:01 +05:30
parent 27d243ee30
commit 27b7e31930

View File

@@ -24,6 +24,7 @@ import { TABLE_PAGINATION } from "../../Constants/Paginations";
import InitiateReversalPopup from "../../Components/Popups/InitiateReversalPopups";
import ToastBox from "../../Components/ToastBox";
import { useCreateAccountDeletionReversalRequestMutation } from "../../Services/reversal.account.deletion.service";
import { isMaker } from "../../Constants/Constants";
// import { formatDate } from "../../Components/Functions/UTCConvertor";
const DeletionHistory = () => {
@@ -99,7 +100,7 @@ const DeletionHistory = () => {
"Country",
"Phone Number",
"Status",
"Reversal Action",
isMaker() && "Reversal Action",
];
const extractedArray = deleteHistory?.data?.rows?.map((item, index) => ({