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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,