1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-29 13:58:02 +03:00

Adjust context

This commit is contained in:
Brent Jackson 2019-04-20 15:41:30 -04:00
parent 73f17ff1b3
commit fa7964f200
2 changed files with 2 additions and 2 deletions

View File

@ -124,6 +124,7 @@ export const MDXDeck = props => {
update: setState,
register,
modes,
index,
goto,
previous,
next,
@ -146,7 +147,7 @@ export const MDXDeck = props => {
<First path="/" />
</Slide>
{slides.map((Component, i) => (
<Slide key={i} path={i + '/*'} index={i} {...context}>
<Slide key={i} path={i + '/*'} index={i} context={context}>
<Component path={i + '/*'} />
</Slide>
))}

View File

@ -72,7 +72,6 @@ export const Slide = ({ index, context, ...props }) => (
value={{
index,
...context,
...props,
}}
>
<Root {...props} />