hotfix: add with in column component

This commit is contained in:
George Lima 2018-12-20 11:31:52 -03:00
parent e6c3e8c7f6
commit 0423077cd7
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ const Flex = styled.div`
flex-direction: column; flex-direction: column;
align-items: ${props => props.alignItems}; align-items: ${props => props.alignItems};
justify-content: ${props => props.justifyContent}; justify-content: ${props => props.justifyContent};
${props => props.width && `width: ${props.width};`}
`; `;
type Props = { type Props = {
@ -16,6 +17,7 @@ type Props = {
justifyContent?: string, justifyContent?: string,
className?: string, className?: string,
children: Node, children: Node,
width?: string,
}; };
export const ColumnComponent = ({ children, ...props }: Props) => ( export const ColumnComponent = ({ children, ...props }: Props) => (
@ -26,4 +28,5 @@ ColumnComponent.defaultProps = {
alignItems: 'flex-start', alignItems: 'flex-start',
justifyContent: 'flex-start', justifyContent: 'flex-start',
className: '', className: '',
width: '',
}; };