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:
parent
73f17ff1b3
commit
fa7964f200
@ -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>
|
||||
))}
|
||||
|
@ -72,7 +72,6 @@ export const Slide = ({ index, context, ...props }) => (
|
||||
value={{
|
||||
index,
|
||||
...context,
|
||||
...props,
|
||||
}}
|
||||
>
|
||||
<Root {...props} />
|
||||
|
Loading…
Reference in New Issue
Block a user