mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-29 13:58:02 +03:00
Clean up
This commit is contained in:
parent
13ed292b35
commit
eaee3b9662
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user