fix: passthrough dispatchers

This commit is contained in:
cha0s 2020-06-22 04:26:46 -05:00
parent 8a3b1654e4
commit 7714c87058
2 changed files with 8 additions and 2 deletions

View File

@ -13,6 +13,7 @@ const decorate = compose(
const Actions = ({
context,
dispatchers,
value,
}) => (
<div className="actions">
@ -23,7 +24,7 @@ const Actions = ({
(traversal, i) => (
// eslint-disable-next-line react/no-array-index-key
<li key={i}>
<Value.Component context={context} value={traversal} />
<Value.Component context={context} dispatchers={dispatchers} value={traversal} />
</li>
),
)

View File

@ -12,6 +12,7 @@ const decorate = compose(
const Routines = ({
context,
dispatchers,
value,
}) => {
const entries = value.routines ? Object.entries(value.routines) : [];
@ -25,7 +26,11 @@ const Routines = ({
<li className="routine" key={name}>
<label>
<span className="text">{name}</span>
<Actions.Component context={context} value={routine.routine} />
<Actions.Component
context={context}
dispatchers={dispatchers}
value={routine.routine}
/>
</label>
</li>
),