mirror of
https://github.com/strapi/strapi.git
synced 2025-10-14 01:24:10 +00:00

* 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>
12 lines
217 B
JavaScript
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;
|