1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-29 13:58:02 +03:00
This commit is contained in:
busypeoples 2018-08-05 16:59:24 +02:00
parent 13ed292b35
commit eaee3b9662

View File

@ -68,6 +68,8 @@ export class SlideDeck extends React.Component {
static propTypes = {
slides: PropTypes.array.isRequired,
theme: PropTypes.object,
components: PropTypes.object,
Provider: PropTypes.func,
width: PropTypes.string,
height: PropTypes.string,
ignoreKeyEvents: PropTypes.bool
@ -76,6 +78,8 @@ export class SlideDeck extends React.Component {
static defaultProps = {
slides: [],
theme: defaultTheme,
components: {} ,
Provider: DefaultProvider,
width: '100vw',
height: '100vh',
ignoreKeyEvents: false
@ -198,8 +202,8 @@ export class SlideDeck extends React.Component {
const {
slides,
theme,
components: propsComponents = {},
Provider: PropsProvider = DefaultProvider,
components: propsComponents,
Provider: PropsProvider,
width,
height
} = this.props