fix: passthrough dispatchers
This commit is contained in:
parent
8a3b1654e4
commit
7714c87058
|
@ -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>
|
||||
),
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue
Block a user