Made separator margin for mobile a prop

This commit is contained in:
Piotr Janosz
2019-07-16 23:44:40 +02:00
committed by fabioberger
parent ace63fe83a
commit 3d904aac67

View File

@@ -2,6 +2,7 @@ import styled from 'styled-components';
interface ISeparatorProps {
margin?: string;
marginMobile?: string;
}
export const Separator = styled.hr<ISeparatorProps>`
@@ -11,10 +12,11 @@ export const Separator = styled.hr<ISeparatorProps>`
margin: ${({ margin }) => margin};
@media (max-width: 768px) {
margin: 30px 0;
margin: ${({ marginMobile }) => marginMobile};
}
`;
Separator.defaultProps = {
margin: '30px 0',
marginMobile: '30px 0',
};