From c1dc7fd46f9bf5a3bb532e621eeff181d280d7f4 Mon Sep 17 00:00:00 2001 From: godhh <770411226@qq.com> Date: Fri, 16 Jun 2017 21:09:00 +0800 Subject: [PATCH] change PropTypes.String to PropTypes.string --- src/components/Modal.js | 4 ++-- src/components/ModalPortal.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Modal.js b/src/components/Modal.js index ee51a588..19ee8a96 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -42,11 +42,11 @@ export default class Modal extends Component { portalClassName: PropTypes.string, bodyOpenClassName: PropTypes.string, className: PropTypes.oneOfType([ - PropTypes.String, + PropTypes.string, PropTypes.object ]), overlayClassName: PropTypes.oneOfType([ - PropTypes.String, + PropTypes.string, PropTypes.object ]), appElement: PropTypes.instanceOf(SafeHTMLElement), diff --git a/src/components/ModalPortal.js b/src/components/ModalPortal.js index 3c22c0ea..fbf27a81 100644 --- a/src/components/ModalPortal.js +++ b/src/components/ModalPortal.js @@ -31,11 +31,11 @@ export default class ModalPortal extends Component { overlay: PropTypes.object }), className: PropTypes.oneOfType([ - PropTypes.String, + PropTypes.string, PropTypes.object ]), overlayClassName: PropTypes.oneOfType([ - PropTypes.String, + PropTypes.string, PropTypes.object ]), onAfterOpen: PropTypes.func,