fix: passthrough dispatchers
This commit is contained in:
parent
8a3b1654e4
commit
7714c87058
|
@ -13,6 +13,7 @@ const decorate = compose(
|
||||||
|
|
||||||
const Actions = ({
|
const Actions = ({
|
||||||
context,
|
context,
|
||||||
|
dispatchers,
|
||||||
value,
|
value,
|
||||||
}) => (
|
}) => (
|
||||||
<div className="actions">
|
<div className="actions">
|
||||||
|
@ -23,7 +24,7 @@ const Actions = ({
|
||||||
(traversal, i) => (
|
(traversal, i) => (
|
||||||
// eslint-disable-next-line react/no-array-index-key
|
// eslint-disable-next-line react/no-array-index-key
|
||||||
<li key={i}>
|
<li key={i}>
|
||||||
<Value.Component context={context} value={traversal} />
|
<Value.Component context={context} dispatchers={dispatchers} value={traversal} />
|
||||||
</li>
|
</li>
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,6 +12,7 @@ const decorate = compose(
|
||||||
|
|
||||||
const Routines = ({
|
const Routines = ({
|
||||||
context,
|
context,
|
||||||
|
dispatchers,
|
||||||
value,
|
value,
|
||||||
}) => {
|
}) => {
|
||||||
const entries = value.routines ? Object.entries(value.routines) : [];
|
const entries = value.routines ? Object.entries(value.routines) : [];
|
||||||
|
@ -25,7 +26,11 @@ const Routines = ({
|
||||||
<li className="routine" key={name}>
|
<li className="routine" key={name}>
|
||||||
<label>
|
<label>
|
||||||
<span className="text">{name}</span>
|
<span className="text">{name}</span>
|
||||||
<Actions.Component context={context} value={routine.routine} />
|
<Actions.Component
|
||||||
|
context={context}
|
||||||
|
dispatchers={dispatchers}
|
||||||
|
value={routine.routine}
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user