Don't ignore style proptype
This commit is contained in:
1 parent
eb2658e451
commit
c3b3bb27d6
1 file changed
+2
-1
@@ -2,6 +2,7 @@ import omit from 'lodash.omit';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import Style from 'to-style';
|
||||
import stylePropType from 'react-style-proptype';
|
||||
|
||||
/*
|
||||
* DOMElementRenderer wraps a DOM element, allowing it to be
|
||||
@@ -46,7 +47,7 @@ class DOMElementRenderer extends React.Component {
|
||||
|
||||
DOMElementRenderer.propTypes = {
|
||||
domElement: PropTypes.instanceOf(Element).isRequired,
|
||||
style: PropTypes.object // eslint-disable-line react/forbid-prop-types
|
||||
style: stylePropType
|
||||
};
|
||||
|
||||
export default DOMElementRenderer;
|
||||
Reference in new issue
Block a user