mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-26 00:35:02 +03:00
Merge pull request #31 from jxnblk/merge-components
Merge default components
This commit is contained in:
commit
bac74e7f4b
@ -171,7 +171,7 @@ export class SlideDeck extends React.Component {
|
||||
static defaultProps = {
|
||||
slides: [],
|
||||
theme: defaultTheme,
|
||||
components: defaultComponents,
|
||||
components: {} ,
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
ignoreKeyEvents: false
|
||||
@ -247,7 +247,11 @@ export class SlideDeck extends React.Component {
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
<MDXProvider components={components}>
|
||||
<MDXProvider
|
||||
components={{
|
||||
...defaultComponents,
|
||||
...components
|
||||
}}>
|
||||
<Root width={width} height={height}>
|
||||
<GoogleFonts />
|
||||
<Carousel index={index}>
|
||||
|
Loading…
Reference in New Issue
Block a user