Conditionally display "Reversal Action" column in DeletionHistory based on user role
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user