diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-08 08:06:41 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-08 08:06:41 +0800 |
commit | c6e7ad5a53a267dfe1ca6ecf2b9d2252fbad18ea (patch) | |
tree | b37383f32286cd37442ebd43ef4189f56d164049 /packages | |
parent | 6861cd746290c076f066cb6e56ecd3ef3f60f607 (diff) | |
download | dexon-sol-tools-c6e7ad5a53a267dfe1ca6ecf2b9d2252fbad18ea.tar.gz dexon-sol-tools-c6e7ad5a53a267dfe1ca6ecf2b9d2252fbad18ea.tar.zst dexon-sol-tools-c6e7ad5a53a267dfe1ca6ecf2b9d2252fbad18ea.zip |
Small code review tweaks
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/components/ui/container.tsx | 2 | ||||
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_container.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx index cbb6a3a15..403751210 100644 --- a/packages/instant/src/components/ui/container.tsx +++ b/packages/instant/src/components/ui/container.tsx @@ -65,7 +65,7 @@ export const Container = ${props => cssRuleIfExists(props, 'cursor')} ${props => cssRuleIfExists(props, 'overflow')} ${props => (props.hasBoxShadow ? `box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1)` : '')}; - ${props => stylesForMedia('display', props.display || 'initial')} + ${props => props.display && stylesForMedia('display', props.display)} ${props => stylesForMedia('width', props.width || 'auto')} ${props => stylesForMedia('height', props.height || 'auto')} background-color: ${props => (props.backgroundColor ? props.theme[props.backgroundColor] : 'none')}; diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx index 6d3c6cb27..ef6adf384 100644 --- a/packages/instant/src/components/zero_ex_instant_container.tsx +++ b/packages/instant/src/components/zero_ex_instant_container.tsx @@ -44,7 +44,7 @@ export class ZeroExInstantContainer extends React.Component<ZeroExInstantContain overflow="hidden" height="100%" > - <Flex direction="column" height={'100%'} justify="flex-start"> + <Flex direction="column" height="100%" justify="flex-start"> <SelectedAssetInstantHeading onSelectAssetClick={this._handleSymbolClick} /> <SelectedAssetBuyOrderProgress /> <LatestBuyQuoteOrderDetails /> |