1
1
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:
Brent Jackson 2018-07-31 19:38:20 -04:00 committed by GitHub
commit bac74e7f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}>