Made separator margin for mobile a prop
This commit is contained in:
committed by
fabioberger
parent
ace63fe83a
commit
3d904aac67
@@ -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',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user