From 39093c5d4597f37ab5f444da8a155110a1569e0d Mon Sep 17 00:00:00 2001 From: Felipe Carlos Date: Tue, 6 Aug 2024 12:59:46 -0300 Subject: [PATCH] form: enabling extra configuration for InteractiveMap --- .../components/form/fields/LocationsField/LocationsField.js | 5 +++++ .../components/form/fields/LocationsField/LocationsModal.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/components/form/fields/LocationsField/LocationsField.js b/src/lib/components/form/fields/LocationsField/LocationsField.js index f7cb884..c2adddf 100644 --- a/src/lib/components/form/fields/LocationsField/LocationsField.js +++ b/src/lib/components/form/fields/LocationsField/LocationsField.js @@ -40,6 +40,7 @@ import { LocationsFieldItem } from './LocationsFieldItem'; * @param {String} label Field Label. * @param {String} labelIcon Field icon. * @param {Bool} required Flag to set if the field is required in the form. + * @param {Object} interactiveMapConfig Configurations for the InteractiveMap object. * @returns {JSX.Element} * * @note This component is based on `CreatibutorsField` from React Invenio Deposit. @@ -57,6 +58,7 @@ export const LocationsFieldForm = ({ label, labelIcon, required, + interactiveMapConfig }) => { // field values const formikValues = getIn(values, fieldPath, []); @@ -123,6 +125,7 @@ export const LocationsFieldForm = ({ {locationAddButtonLabel} } + {...interactiveMapConfig} /> {locationsError && typeof locationsError === 'string' && (