From 38a6ecbfc7910a47f92d496f708ebfb2e48e2fb2 Mon Sep 17 00:00:00 2001 From: soupette Date: Thu, 13 Feb 2020 10:41:47 +0100 Subject: [PATCH] Created CardImgWrapper Signed-off-by: soupette --- .../src/components/CardImgWrapper/index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/strapi-plugin-upload/admin/src/components/CardImgWrapper/index.js diff --git a/packages/strapi-plugin-upload/admin/src/components/CardImgWrapper/index.js b/packages/strapi-plugin-upload/admin/src/components/CardImgWrapper/index.js new file mode 100644 index 0000000000..0b054801bd --- /dev/null +++ b/packages/strapi-plugin-upload/admin/src/components/CardImgWrapper/index.js @@ -0,0 +1,19 @@ +import styled from 'styled-components'; +import PropTypes from 'prop-types'; + +const CardImgWrapper = styled.div` + height: ${({ isSmall }) => (isSmall ? '127px' : '156px')}; + width: ${({ isSmall }) => (isSmall ? '200px' : '245px')}; + border-radius: 2px; + background: #333740; +`; + +CardImgWrapper.defaultProps = { + isSmall: false, +}; + +CardImgWrapper.propTypes = { + isSmall: PropTypes.bool, +}; + +export default CardImgWrapper;