diff options
author | August Skare <post@augustskare.no> | 2018-11-20 22:10:59 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-20 22:10:59 +0800 |
commit | ea1805058924e12a18bcc4f9de712bfade64c595 (patch) | |
tree | cb172f39ead2ff076600dbcf53745e2bb1a34580 /packages/dev-tools-pages/ts/components/content-block.tsx | |
parent | 117726c6d80dd20e8b9409cec23b0c062690b0df (diff) | |
download | dexon-0x-contracts-ea1805058924e12a18bcc4f9de712bfade64c595.tar.gz dexon-0x-contracts-ea1805058924e12a18bcc4f9de712bfade64c595.tar.zst dexon-0x-contracts-ea1805058924e12a18bcc4f9de712bfade64c595.zip |
use lodash isUndefined function
Diffstat (limited to 'packages/dev-tools-pages/ts/components/content-block.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/content-block.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/ts/components/content-block.tsx b/packages/dev-tools-pages/ts/components/content-block.tsx index a8c208163..3f6b024e6 100644 --- a/packages/dev-tools-pages/ts/components/content-block.tsx +++ b/packages/dev-tools-pages/ts/components/content-block.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import styled from 'styled-components'; +import * as _ from 'lodash'; import { ContextInterface } from 'ts/context'; import { media } from 'ts/variables'; @@ -69,7 +70,7 @@ const ContentBlock: React.StatelessComponent<ContentBlockProps> = props => { return ( <Base> <Title color={props.colors}>{props.title}</Title> - {children === undefined ? null : <Content>{children}</Content>} + {_.isUndefined(children) ? null : <Content>{children}</Content>} </Base> ); }; |