@undp/carbon-library 1.0.288 → 1.0.289-CARBON-220.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -16894,7 +16894,9 @@ var InvestmentManagementComponent = function (props) {
16894
16894
  React.createElement("div", { className: "title-bar" },
16895
16895
  React.createElement("div", { className: "body-title" }, t("programme:investmentTitle")),
16896
16896
  React.createElement("div", { className: "body-sub-title" }, t("programme:investmentDesc"))),
16897
- React.createElement("div", { className: "actions" }, enableAddOwnership && (React.createElement("div", { className: "action-bar" },
16897
+ React.createElement("div", { className: "actions" }, (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== Role.ViewOnly &&
16898
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== CompanyRole.CERTIFIER &&
16899
+ enableAddOwnership && (React.createElement("div", { className: "action-bar" },
16898
16900
  React.createElement(Button, { type: "primary", size: "large", block: true, icon: React.createElement(PlusOutlined, null), onClick: onClickAddOwnership }, t("programme:addOwnership")))))),
16899
16901
  React.createElement("div", { className: "content-card" },
16900
16902
  React.createElement(Row, null,