@ukhomeoffice/cop-react-form-renderer 5.73.1 → 5.74.0
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.
|
@@ -293,7 +293,10 @@ var CollectionSummary = function CollectionSummary(_ref) {
|
|
|
293
293
|
label: config.addButton.label || DEFAULT_ADD_BUTTON_LABEL,
|
|
294
294
|
page: config.addButton.page,
|
|
295
295
|
type: _PageAction.PageActionTypes.COLLECTION_ADD,
|
|
296
|
-
classModifiers: ['secondary']
|
|
296
|
+
classModifiers: ['secondary'],
|
|
297
|
+
customAction: {
|
|
298
|
+
type: config.addButton.customAction
|
|
299
|
+
}
|
|
297
300
|
},
|
|
298
301
|
onAction: onAction
|
|
299
302
|
}));
|
|
@@ -305,7 +308,10 @@ CollectionSummary.propTypes = {
|
|
|
305
308
|
collectionName: _propTypes.default.string.isRequired,
|
|
306
309
|
addButton: _propTypes.default.shape({
|
|
307
310
|
label: _propTypes.default.string,
|
|
308
|
-
page: _propTypes.default.string.isRequired
|
|
311
|
+
page: _propTypes.default.string.isRequired,
|
|
312
|
+
customAction: _propTypes.default.shape({
|
|
313
|
+
type: _propTypes.default.string
|
|
314
|
+
})
|
|
309
315
|
}),
|
|
310
316
|
card: _propTypes.default.shape({
|
|
311
317
|
banners: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({})])),
|