Skip to content

Commit

Permalink
Added jsdoc to WithTaskFeatureProperties HOC
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPhilbin committed Sep 5, 2023
1 parent 771d4db commit 8ab9fbb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8ab9fbb

Please sign in to comment.