@undp/carbon-library 1.0.28 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -1492,7 +1492,7 @@ var CompanyProfileComponent = function (props) {
|
|
1492
1492
|
!isLoading &&
|
1493
1493
|
parseInt(companyDetails.state) !== 1 ? (React.createElement(Button, { className: "btn-activate", onClick: onReActivateOrganisation }, t("companyProfile:reActivate"))) : (""),
|
1494
1494
|
ability.can(Action.Update, plainToClass(Company, companyDetails)) &&
|
1495
|
-
!isLoading && (React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: function () { return onNavigateToCompanyEdit(companyDetails); } }, t("common:edit"))))),
|
1495
|
+
!isLoading && companyDetails && (React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: function () { return onNavigateToCompanyEdit(companyDetails); } }, t("common:edit"))))),
|
1496
1496
|
React.createElement("div", { className: "content-body" },
|
1497
1497
|
React.createElement(Row, { gutter: 16 },
|
1498
1498
|
React.createElement(Col, { md: 24, lg: 8 },
|
@@ -4963,9 +4963,9 @@ var UserProfileComponent = function (props) {
|
|
4963
4963
|
React.createElement(Col, { md: 24, lg: 16 },
|
4964
4964
|
React.createElement(Row, { justify: "end" },
|
4965
4965
|
React.createElement(Button, { className: "mg-left-1 btn-danger mg-bottom-1", onClick: function () { return signOut(); } }, t("userProfile:logOut")),
|
4966
|
-
React.createElement(Button, { className: "mg-left-1 mg-bottom-1", type: "primary", onClick: function () {
|
4966
|
+
userDetails && organisationDetails && (React.createElement(Button, { className: "mg-left-1 mg-bottom-1", type: "primary", onClick: function () {
|
4967
4967
|
onNavigateUpdateUser(organisationDetails, userDetails);
|
4968
|
-
} }, t("userProfile:edit")),
|
4968
|
+
} }, t("userProfile:edit"))),
|
4969
4969
|
React.createElement(LanguageSelection, { i18n: i18n })))),
|
4970
4970
|
React.createElement("div", { className: "content-body" },
|
4971
4971
|
React.createElement(Row, { gutter: 16 },
|