diff --git a/src/components/HOCs/WithTaskFeatureProperties/WithTaskFeatureProperties.js b/src/components/HOCs/WithTaskFeatureProperties/WithTaskFeatureProperties.js index 9b9e78e57..c895aaf9b 100644 --- a/src/components/HOCs/WithTaskFeatureProperties/WithTaskFeatureProperties.js +++ b/src/components/HOCs/WithTaskFeatureProperties/WithTaskFeatureProperties.js @@ -2,6 +2,13 @@ import React from 'react' import useMRProperties from '../../../hooks/UseMRProperties/UseMRProperties' import AsMappableTask from '../../../interactions/Task/AsMappableTask' +/** + * WithTaskFeatureProperties provides task feature properties derived + * from the useMRProperties hook and the AsMappableTask interaction. + * Both property sets are combined and passed as props to wrapped components. + */ + + const WithTaskFeatureProperties = (Component) => { return function(props) { const allFeatureProperties = AsMappableTask(props.task).allFeatureProperties()