mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 09:47:46 +00:00
Created CardImgWrapper
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
f5f84afd70
commit
38a6ecbfc7
@ -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;
|
Loading…
x
Reference in New Issue
Block a user