diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-07 07:11:23 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-07 07:11:23 +0800 |
commit | 14e3f413a23f9ee41d880539f98e2957708b035f (patch) | |
tree | b67819e1e572e7d84f7f90a07b77e13513c6289e /packages/website/ts/components/fill_order.tsx | |
parent | 2b4cd8b2ec5801786cd317870717260b503784dc (diff) | |
download | dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.tar dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.tar.gz dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.tar.bz2 dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.tar.lz dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.tar.xz dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.tar.zst dexon-0x-contracts-14e3f413a23f9ee41d880539f98e2957708b035f.zip |
Change shouldRenderHeader prop to shouldHideHeader
Diffstat (limited to 'packages/website/ts/components/fill_order.tsx')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index e313a43fe..b6b52993e 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -40,7 +40,7 @@ interface FillOrderProps { dispatcher: Dispatcher; lastForceTokenStateRefetch: number; isFullWidth?: boolean; - shouldRenderHeader?: boolean; + shouldHideHeader?: boolean; } interface FillOrderState { @@ -65,7 +65,7 @@ interface FillOrderState { export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { public static defaultProps: Partial<FillOrderProps> = { isFullWidth: false, - shouldRenderHeader: true, + shouldHideHeader: false, }; private _isUnmounted: boolean; constructor(props: FillOrderProps) { @@ -106,7 +106,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { const rootClassName = this.props.isFullWidth ? 'clearfix' : 'lg-px4 md-px4 sm-px2'; return ( <div className={rootClassName} style={{ minHeight: 600 }}> - {this.props.shouldRenderHeader && ( + {!this.props.shouldHideHeader && ( <div> <h3>Fill an order</h3> <Divider /> |