Skip to content

Commit

Permalink
dont' direct import.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsyro committed Nov 8, 2023
1 parent 0f2b1f6 commit 64a952d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { withRouter, Link, RouteComponentProps } from "react-router-dom";
import { Menu, Dropdown, Button, Popconfirm } from "antd";
import { PlusOutlined, SafetyCertificateOutlined, ReadOutlined } from "@ant-design/icons";
import { connect } from "react-redux";
import { Feature, VC_CRED_ISSUE_STATES, isFeatureEnabled } from "@mds/common/index";
import { Feature, VC_CRED_ISSUE_STATES } from "@mds/common/index";
import { useFeatureFlag } from "@mds/common/providers/featureFlags/useFeatureFlag";
import { formatDate } from "@common/utils/helpers";
import { getPartyRelationships } from "@common/selectors/partiesSelectors";
import {
Expand All @@ -29,6 +30,7 @@ import { ColumnsType } from "antd/lib/table";
*/

const draftAmendment = "DFT";
const { isFeatureEnabled } = useFeatureFlag();

interface MinePermitTableProps {
permits?: IPermit[];
Expand Down Expand Up @@ -113,7 +115,7 @@ const renderDeleteButtonForPermitAmendments = (record) => {
okText={isLinkedToNowApplication ? "Ok" : "Delete"}
cancelText="Cancel"
onConfirm={
isLinkedToNowApplication ? () => { } : () => record.handleDeletePermitAmendment(record)
isLinkedToNowApplication ? () => {} : () => record.handleDeletePermitAmendment(record)
}
>
<div className="custom-menu-item">
Expand Down Expand Up @@ -358,7 +360,7 @@ const columns: ColumnsType<MinePermitTableItem> = [
onConfirm={
isDeletionAllowed
? () => record.handleDeletePermit((record.permit as IPermit).permit_guid)
: () => { }
: () => {}
}
okText={isDeletionAllowed ? "Delete" : "Ok"}
cancelText="Cancel"
Expand Down

0 comments on commit 64a952d

Please sign in to comment.