aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/generate_order
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-07 07:11:23 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-07 07:11:23 +0800
commit14e3f413a23f9ee41d880539f98e2957708b035f (patch)
treeb67819e1e572e7d84f7f90a07b77e13513c6289e /packages/website/ts/components/generate_order
parent2b4cd8b2ec5801786cd317870717260b503784dc (diff)
downloaddexon-sol-tools-14e3f413a23f9ee41d880539f98e2957708b035f.tar.gz
dexon-sol-tools-14e3f413a23f9ee41d880539f98e2957708b035f.tar.zst
dexon-sol-tools-14e3f413a23f9ee41d880539f98e2957708b035f.zip
Change shouldRenderHeader prop to shouldHideHeader
Diffstat (limited to 'packages/website/ts/components/generate_order')
-rw-r--r--packages/website/ts/components/generate_order/generate_order_form.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/components/generate_order/generate_order_form.tsx b/packages/website/ts/components/generate_order/generate_order_form.tsx
index e786719b0..52e3b73cd 100644
--- a/packages/website/ts/components/generate_order/generate_order_form.tsx
+++ b/packages/website/ts/components/generate_order/generate_order_form.tsx
@@ -48,7 +48,7 @@ interface GenerateOrderFormProps {
tokenByAddress: TokenByAddress;
lastForceTokenStateRefetch: number;
isFullWidth?: boolean;
- shouldRenderHeader?: boolean;
+ shouldHideHeader?: boolean;
}
interface GenerateOrderFormState {
@@ -60,7 +60,7 @@ interface GenerateOrderFormState {
export class GenerateOrderForm extends React.Component<GenerateOrderFormProps, GenerateOrderFormState> {
public static defaultProps: Partial<GenerateOrderFormProps> = {
isFullWidth: false,
- shouldRenderHeader: true,
+ shouldHideHeader: false,
};
constructor(props: GenerateOrderFormProps) {
super(props);
@@ -89,7 +89,7 @@ export class GenerateOrderForm extends React.Component<GenerateOrderFormProps, G
const rootClassName = this.props.isFullWidth ? 'clearfix mb2' : 'clearfix mb2 lg-px4 md-px4 sm-px2';
return (
<div className={rootClassName}>
- {this.props.shouldRenderHeader && (
+ {!this.props.shouldHideHeader && (
<div>
<h3>Generate an order</h3>
<Divider />