hhh 062cb62926
Fix missing validation error message on media field (#6346)
* Fix missing validation error message on media field

Signed-off-by: henrych4 <singyinhenry@gmail.com>

* Add id and error propTypes

Signed-off-by: henrych4 <singyinhenry@gmail.com>

* Update the style to keep the baseline

Signed-off-by: henrych4 <singyinhenry@gmail.com>

* Update propTypes of id and error and set default value

Signed-off-by: henrych4 <singyinhenry@gmail.com>

Co-authored-by: cyril lopez <cyril.lpz@gmail.com>
2020-05-29 11:39:25 +02:00

12 lines
217 B
JavaScript

import styled from 'styled-components';
const Wrapper = styled.div`
margin-bottom: ${({ hasError }) => (hasError ? '1.7rem' : '2.3rem')};
`;
Wrapper.defaultProps = {
hasError: false,
};
export default Wrapper;