Remove unused style prop from modal frame
[MAILPOET-2804]
This commit is contained in:
@@ -14,7 +14,6 @@ function ModalFrame({
|
|||||||
children,
|
children,
|
||||||
className,
|
className,
|
||||||
role,
|
role,
|
||||||
style,
|
|
||||||
fullScreen,
|
fullScreen,
|
||||||
}) {
|
}) {
|
||||||
const wrapperRef = useRef(null);
|
const wrapperRef = useRef(null);
|
||||||
@@ -64,7 +63,6 @@ function ModalFrame({
|
|||||||
{ 'mailpoet-modal-full-screen': fullScreen },
|
{ 'mailpoet-modal-full-screen': fullScreen },
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
style={style}
|
|
||||||
role={role}
|
role={role}
|
||||||
aria-label={contentLabel}
|
aria-label={contentLabel}
|
||||||
aria-labelledby={contentLabel ? null : labelledby}
|
aria-labelledby={contentLabel ? null : labelledby}
|
||||||
@@ -84,7 +82,6 @@ ModalFrame.propTypes = {
|
|||||||
shouldCloseOnClickOutside: PropTypes.bool,
|
shouldCloseOnClickOutside: PropTypes.bool,
|
||||||
role: PropTypes.string,
|
role: PropTypes.string,
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
style: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
|
||||||
contentLabel: PropTypes.string,
|
contentLabel: PropTypes.string,
|
||||||
overlayClassName: PropTypes.string,
|
overlayClassName: PropTypes.string,
|
||||||
children: PropTypes.node.isRequired,
|
children: PropTypes.node.isRequired,
|
||||||
@@ -101,7 +98,6 @@ ModalFrame.defaultProps = {
|
|||||||
fullScreen: false,
|
fullScreen: false,
|
||||||
shouldCloseOnClickOutside: true,
|
shouldCloseOnClickOutside: true,
|
||||||
className: '',
|
className: '',
|
||||||
style: {},
|
|
||||||
aria: {
|
aria: {
|
||||||
describedby: '',
|
describedby: '',
|
||||||
labelledby: '',
|
labelledby: '',
|
||||||
|
Reference in New Issue
Block a user