diff --git a/client/src/components/header/header.component.jsx b/client/src/components/header/header.component.jsx index 1f7e10fcb..386fa052d 100644 --- a/client/src/components/header/header.component.jsx +++ b/client/src/components/header/header.component.jsx @@ -213,27 +213,13 @@ function Header({ { key: "enterpayments", id: "header-accounting-enterpayments", - icon: , + icon: , label: t("menus.header.enterpayment"), - onClick: () => { + onClick: () => + HasFeatureAccess({ featureName: "payments", bodyshop }) && setPaymentContext({ actions: {}, context: null - }); - } - } - ); - - if (ImEXPay.treatment === "on") { - accountingChildren.push({ - key: "entercardpayments", - id: "header-accounting-entercardpayments", - icon: , - label: t("menus.header.entercardpayment"), - onClick: () => { - setCardPaymentContext({ - actions: {}, - context: null }) }, ...(ImEXPay.treatment === "on" diff --git a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx index bfa85dfb2..02a6b3494 100644 --- a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx +++ b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx @@ -32,6 +32,7 @@ import ShareToTeamsButton from "../share-to-teams/share-to-teams.component.jsx"; import AddToProduction from "./jobs-detail-header-actions.addtoproduction.util"; import DuplicateJob from "./jobs-detail-header-actions.duplicate.util"; import JobsDetailHeaderActionsToggleProduction from "./jobs-detail-header-actions.toggle-production"; +import { useNotification } from "../../contexts/Notifications/notificationContext.jsx"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop,