From f470636a70943a8ecad8bddc791a1c2dddd28e1e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 4 May 2019 21:13:12 +0300 Subject: Components -> UI --- vnext/src/components/Modal.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 vnext/src/components/Modal.js (limited to 'vnext/src/components/Modal.js') diff --git a/vnext/src/components/Modal.js b/vnext/src/components/Modal.js deleted file mode 100644 index 799a6f35..00000000 --- a/vnext/src/components/Modal.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -import Icon from './Icon'; - -import './Modal.css'; - -function Modal(props) { - return props.show ? ( -
-
-
-
- -
-
- {props.children} -
-
- ) : (null); -} - -export default React.memo(Modal); - -Modal.propTypes = { - onClose: PropTypes.func.isRequired, - show: PropTypes.bool, - children: PropTypes.node -}; -- cgit v1.2.3