oa-componentbook 1.0.1-stage.402 → 1.0.1-stage.403
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.
|
@@ -118,7 +118,7 @@ function SparePartsWidget(_ref) {
|
|
|
118
118
|
showNonCoverageMessage,
|
|
119
119
|
unCoveredScopeDescription
|
|
120
120
|
} = _ref;
|
|
121
|
-
const sparePartList = [...scopeDetails.
|
|
121
|
+
const sparePartList = [...scopeDetails.coveredScope, ...scopeDetails.unCoveredScope];
|
|
122
122
|
const showActionList = sparePartList.some(sparePart => {
|
|
123
123
|
var _sparePart$action;
|
|
124
124
|
return (sparePart === null || sparePart === void 0 || (_sparePart$action = sparePart.action) === null || _sparePart$action === void 0 ? void 0 : _sparePart$action.length) > 0;
|
|
@@ -223,7 +223,7 @@ function SparePartsWidget(_ref) {
|
|
|
223
223
|
}
|
|
224
224
|
}), showSparePartsInfo && /*#__PURE__*/_react.default.createElement(_CustomTable.default, {
|
|
225
225
|
columns: columns,
|
|
226
|
-
dataSource: [...
|
|
226
|
+
dataSource: [...coveredScope, ...unCoveredScope],
|
|
227
227
|
pagination: false,
|
|
228
228
|
size: "middle"
|
|
229
229
|
}), showCostBreakdown && /*#__PURE__*/_react.default.createElement(CostBreakdown, null, Object.keys(scopeDetails).map((key, index) => {
|
|
@@ -252,8 +252,8 @@ function SparePartsWidget(_ref) {
|
|
|
252
252
|
// Define prop types for SpareParts component
|
|
253
253
|
SparePartsWidget.propTypes = {
|
|
254
254
|
scopeDetails: _propTypes.default.shape({
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
coveredScope: _propTypes.default.array,
|
|
256
|
+
unCoveredScope: _propTypes.default.array
|
|
257
257
|
}),
|
|
258
258
|
actions: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
259
259
|
'data-test': _propTypes.default.string,
|
|
@@ -278,8 +278,8 @@ SparePartsWidget.defaultProps = {
|
|
|
278
278
|
showCostBreakdown: true,
|
|
279
279
|
coverageShow: true,
|
|
280
280
|
scopeDetails: {
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
coveredScope: [],
|
|
282
|
+
unCoveredScope: []
|
|
283
283
|
},
|
|
284
284
|
actions: null,
|
|
285
285
|
showPriceHistory: false,
|