diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-07 18:18:53 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-07 18:18:53 +0800 |
commit | 0fc981400442e4c567ca363bdf0f4c03ba87473d (patch) | |
tree | ee19dfb9dcd9c631fa4138326b9d639a7fc7374e /packages/website/ts/components/fill_order.tsx | |
parent | e617da3bbf650b25c29df33cd12e23c994efe674 (diff) | |
parent | e0bc01eea1c20e0afda296f331c6a475e062b59c (diff) | |
download | dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.gz dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.bz2 dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.lz dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.xz dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.zst dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.zip |
merge v2-prototype
Diffstat (limited to 'packages/website/ts/components/fill_order.tsx')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index 0168ec8f6..b6b52993e 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -39,6 +39,8 @@ interface FillOrderProps { initialOrder: Order; dispatcher: Dispatcher; lastForceTokenStateRefetch: number; + isFullWidth?: boolean; + shouldHideHeader?: boolean; } interface FillOrderState { @@ -61,6 +63,10 @@ interface FillOrderState { } export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { + public static defaultProps: Partial<FillOrderProps> = { + isFullWidth: false, + shouldHideHeader: false, + }; private _isUnmounted: boolean; constructor(props: FillOrderProps) { super(props); @@ -97,10 +103,15 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { this._isUnmounted = true; } public render(): React.ReactNode { + const rootClassName = this.props.isFullWidth ? 'clearfix' : 'lg-px4 md-px4 sm-px2'; return ( - <div className="clearfix lg-px4 md-px4 sm-px2" style={{ minHeight: 600 }}> - <h3>Fill an order</h3> - <Divider /> + <div className={rootClassName} style={{ minHeight: 600 }}> + {!this.props.shouldHideHeader && ( + <div> + <h3>Fill an order</h3> + <Divider /> + </div> + )} <div> {!this.props.isOrderInUrl && ( <div> |