hotfix: add with in column component
This commit is contained in:
parent
e6c3e8c7f6
commit
0423077cd7
|
@ -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: '',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue