Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(synthetic-box): set flex direction properly
Browse files Browse the repository at this point in the history
  • Loading branch information
faselbaum committed Sep 13, 2018
1 parent befe4ae commit ec3b87e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/preview-renderer/synthetic-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface SyntheticBoxProps {
alignItems: '';
flex: boolean;
flexBasis: number;
column: boolean;
flexDirection: 'column' | 'string';
wrap: boolean;
flexGrow: number | 'inherit' | 'initial' | 'revert' | 'unset' | undefined;
flexShrink: number;
Expand All @@ -22,9 +22,8 @@ export const SyntheticBox: React.SFC<SyntheticBoxProps> = props => (
display: props.flex ? 'flex' : 'block',
flexBasis: props.flexBasis,
// tslint:disable-next-line:no-any
flexDirection: props.column ? 'column' : (null as any),
// tslint:disable-next-line:no-any
flexWrap: props.wrap ? 'wrap' : ('nowrap' as any),
flexDirection: props.flexDirection as any,
flexWrap: props.wrap ? 'wrap' : 'nowrap',
flexGrow: props.flexGrow,
flexShrink: props.flexShrink,
justifyContent: props.justifyContent,
Expand Down

0 comments on commit ec3b87e

Please sign in to comment.