@djb25/digit-ui-module-vendor 1.0.76 → 1.0.77
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/index.js +3 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1726,20 +1726,6 @@ const VendorInbox = props => {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
1728
|
};
|
|
1729
|
-
const onSelectAdd = () => {
|
|
1730
|
-
switch (props.selectedTab) {
|
|
1731
|
-
case "VENDOR":
|
|
1732
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-vendor");
|
|
1733
|
-
case "VEHICLE":
|
|
1734
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-vehicle");
|
|
1735
|
-
case "DRIVER":
|
|
1736
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-driver");
|
|
1737
|
-
case "SUPERVISOR":
|
|
1738
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-supervisor");
|
|
1739
|
-
case "SURVEYOR":
|
|
1740
|
-
return history.push("/digit-ui/" + userType + "/vendor/registry/new-surveyor");
|
|
1741
|
-
}
|
|
1742
|
-
};
|
|
1743
1729
|
const vendorIds = React__default.useMemo(() => {
|
|
1744
1730
|
if (props.selectedTab === "VENDOR") {
|
|
1745
1731
|
return (tableData === null || tableData === void 0 ? void 0 : tableData.map(row => row.id)) || [];
|
|
@@ -2169,7 +2155,8 @@ const VendorInbox = props => {
|
|
|
2169
2155
|
Cell: _ref28 => {
|
|
2170
2156
|
var _row$original16;
|
|
2171
2157
|
let row = _ref28.row;
|
|
2172
|
-
|
|
2158
|
+
const zoneId = (_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16.assignedZoneId;
|
|
2159
|
+
return /*#__PURE__*/React__default.createElement("div", null, zoneId ? t(zoneId) : "NA");
|
|
2173
2160
|
}
|
|
2174
2161
|
}, {
|
|
2175
2162
|
Header: t("ES_VENDOR_SUPERVISOR_AGENCY_NAME") || "Agency Name",
|
|
@@ -2515,17 +2502,14 @@ const VendorInbox = props => {
|
|
|
2515
2502
|
let emptyButtonText = "";
|
|
2516
2503
|
if (props.selectedTab === "VENDOR") {
|
|
2517
2504
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_VENDOR";
|
|
2518
|
-
emptyButtonText = "ES_FSM_REGISTRY_EMPTY_BUTTON_VENDOR";
|
|
2519
2505
|
} else if (props.selectedTab === "VEHICLE") {
|
|
2520
2506
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_VEHICLE";
|
|
2521
|
-
emptyButtonText = "ES_FSM_REGISTRY_EMPTY_BUTTON_VEHICLE";
|
|
2522
2507
|
} else if (props.selectedTab === "SUPERVISOR") {
|
|
2523
2508
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_SUPERVISOR";
|
|
2524
2509
|
} else if (props.selectedTab === "SURVEYOR") {
|
|
2525
2510
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_SURVEYOR";
|
|
2526
2511
|
} else {
|
|
2527
2512
|
emptyCardText = "ES_FSM_REGISTRY_EMPTY_CARD_DRIVER";
|
|
2528
|
-
emptyButtonText = "ES_FSM_REGISTRY_EMPTY_BUTTON_DRIVER";
|
|
2529
2513
|
}
|
|
2530
2514
|
result = /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
2531
2515
|
className: "flex-center flex-box"
|
|
@@ -2534,11 +2518,7 @@ const VendorInbox = props => {
|
|
|
2534
2518
|
marginTop: "50px",
|
|
2535
2519
|
marginBottom: "25px"
|
|
2536
2520
|
}
|
|
2537
|
-
}, t(emptyCardText)), emptyButtonText
|
|
2538
|
-
className: "",
|
|
2539
|
-
label: t(emptyButtonText),
|
|
2540
|
-
onSubmit: onSelectAdd
|
|
2541
|
-
}));
|
|
2521
|
+
}, t(emptyCardText)), emptyButtonText );
|
|
2542
2522
|
} else if (tableData.length > 0) {
|
|
2543
2523
|
result = /*#__PURE__*/React__default.createElement(ApplicationTable, {
|
|
2544
2524
|
className: "table",
|