From 2b6ce54b758ee47c2630376f08b17d07540fd734 Mon Sep 17 00:00:00 2001 From: Jason Syrotuck Date: Tue, 7 Nov 2023 13:59:12 -0800 Subject: [PATCH] column defs are in feature flag. --- .../mine/Permit/MinePermitTable.tsx | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/services/core-web/src/components/mine/Permit/MinePermitTable.tsx b/services/core-web/src/components/mine/Permit/MinePermitTable.tsx index 4805e48057..f4d7f53cc0 100644 --- a/services/core-web/src/components/mine/Permit/MinePermitTable.tsx +++ b/services/core-web/src/components/mine/Permit/MinePermitTable.tsx @@ -113,7 +113,7 @@ const renderDeleteButtonForPermitAmendments = (record) => { okText={isLinkedToNowApplication ? "Ok" : "Delete"} cancelText="Cancel" onConfirm={ - isLinkedToNowApplication ? () => {} : () => record.handleDeletePermitAmendment(record) + isLinkedToNowApplication ? () => { } : () => record.handleDeletePermitAmendment(record) } >
@@ -190,12 +190,6 @@ const renderPermitNo = (permit) => { : permit.permit_no; }; -const colourMap = { - "Not Active": "#D8292F", - Pending: "#F1C21B", - Active: "#45A776", -}; - const columns: ColumnsType = [ { title: "Permit No.", @@ -227,16 +221,6 @@ const columns: ColumnsType = [ key: "lastAmended", render: (text) =>
{text}
, }, - { - title: "VC Issuance State", - dataIndex: "lastAmendedVC", - key: "lastAmendedVC", - render: (text) => { - const badgeText = text ? VC_CRED_ISSUE_STATES[text] : "N/A"; - const colour = colourMap[badgeText] ?? "transparent"; - return ; - }, - }, { title: "", dataIndex: "addEditButton", @@ -374,7 +358,7 @@ const columns: ColumnsType = [ onConfirm={ isDeletionAllowed ? () => record.handleDeletePermit((record.permit as IPermit).permit_guid) - : () => {} + : () => { } } okText={isDeletionAllowed ? "Delete" : "Ok"} cancelText="Cancel"