@undp/carbon-library 1.0.274-CARBON-404.2 → 1.0.274-CARBON-404.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +17 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +17 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -6295,7 +6295,12 @@ var AddNewCompanyComponent = function (props) {
|
|
6295
6295
|
requestData.company.logo = logoUrls[1];
|
6296
6296
|
if (companyRole === CompanyRole.MINISTRY) {
|
6297
6297
|
requestData.company.name =
|
6298
|
-
"Ministry of " +
|
6298
|
+
"Ministry of " +
|
6299
|
+
(requestData.company.ministry === "ScienceAndTechnology")
|
6300
|
+
? "Science And Technology"
|
6301
|
+
: requestData.company.ministry === "WaterResources"
|
6302
|
+
? "Water Resources"
|
6303
|
+
: requestData.company.ministry;
|
6299
6304
|
}
|
6300
6305
|
if (!isGuest) return [3 /*break*/, 4];
|
6301
6306
|
return [4 /*yield*/, post("national/user/register", requestData)];
|
@@ -6398,7 +6403,12 @@ var AddNewCompanyComponent = function (props) {
|
|
6398
6403
|
else {
|
6399
6404
|
values.govDep = formOneValues.govDep;
|
6400
6405
|
}
|
6401
|
-
values.name =
|
6406
|
+
values.name =
|
6407
|
+
"Ministry of " + (formOneValues.ministry === "ScienceAndTechnology")
|
6408
|
+
? "Science And Technology"
|
6409
|
+
: formOneValues.ministry === "WaterResources"
|
6410
|
+
? "Water Resources"
|
6411
|
+
: formOneValues.ministry;
|
6402
6412
|
}
|
6403
6413
|
if (((_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.companyRole) === CompanyRole.GOVERNMENT) {
|
6404
6414
|
values.omgePercentage = Math.round(Number(formOneValues.omgePercentage));
|
@@ -6579,7 +6589,11 @@ var AddNewCompanyComponent = function (props) {
|
|
6579
6589
|
message: "Ministry Name is required",
|
6580
6590
|
},
|
6581
6591
|
] },
|
6582
|
-
React.createElement(Select, { size: "large", onChange: onChangeMinistry }, Object.values(Ministry).map(function (ministry) { return (React.createElement(Select.Option, { value: ministry },
|
6592
|
+
React.createElement(Select, { size: "large", onChange: onChangeMinistry }, Object.values(Ministry).map(function (ministry) { return (React.createElement(Select.Option, { value: ministry }, ministry === "ScienceAndTechnology"
|
6593
|
+
? "Science And Technology"
|
6594
|
+
: ministry === "WaterResources"
|
6595
|
+
? "Water Resources"
|
6596
|
+
: ministry)); }))),
|
6583
6597
|
React.createElement(Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_f = state === null || state === void 0 ? void 0 : state.record) === null || _f === void 0 ? void 0 : _f.nameOfMinister, rules: [
|
6584
6598
|
{
|
6585
6599
|
validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
|