@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/cjs/index.js CHANGED
@@ -16915,7 +16915,9 @@ var InvestmentManagementComponent = function (props) {
16915
16915
  React.createElement("div", { className: "title-bar" },
16916
16916
  React.createElement("div", { className: "body-title" }, t("programme:investmentTitle")),
16917
16917
  React.createElement("div", { className: "body-sub-title" }, t("programme:investmentDesc"))),
16918
- React.createElement("div", { className: "actions" }, enableAddOwnership && (React.createElement("div", { className: "action-bar" },
16918
+ React.createElement("div", { className: "actions" }, (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly &&
16919
+ (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !== exports.CompanyRole.CERTIFIER &&
16920
+ enableAddOwnership && (React.createElement("div", { className: "action-bar" },
16919
16921
  React.createElement(antd.Button, { type: "primary", size: "large", block: true, icon: React.createElement(icons.PlusOutlined, null), onClick: onClickAddOwnership }, t("programme:addOwnership")))))),
16920
16922
  React.createElement("div", { className: "content-card" },
16921
16923
  React.createElement(antd.Row, null,