diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-06 15:19:41 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-06 16:33:35 +0800 |
commit | b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f (patch) | |
tree | 99da9736fcbae70f712ebc916ebcf5047d595511 | |
parent | ab4d2faea3aadfcf75c31f5c02b6f772a07280fb (diff) | |
download | dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.tar dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.tar.gz dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.tar.bz2 dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.tar.lz dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.tar.xz dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.tar.zst dexon-sol-tools-b5dc72b126bc9b9572e5837ff10ee1e3d6b8916f.zip |
Make scrollability a prop on TradeHistory
-rw-r--r-- | packages/website/ts/components/portal/portal.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/components/trade_history/trade_history.tsx | 12 |
2 files changed, 10 insertions, 3 deletions
diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index f0d26aeb0..009ef06f3 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -442,6 +442,7 @@ export class Portal extends React.Component<PortalProps, PortalState> { networkId={this.props.networkId} isFullWidth={true} shouldRenderHeader={false} + isScrollable={false} /> ); } diff --git a/packages/website/ts/components/trade_history/trade_history.tsx b/packages/website/ts/components/trade_history/trade_history.tsx index 1c47d4ecd..1e92cdb90 100644 --- a/packages/website/ts/components/trade_history/trade_history.tsx +++ b/packages/website/ts/components/trade_history/trade_history.tsx @@ -15,6 +15,7 @@ interface TradeHistoryProps { networkId: number; isFullWidth?: boolean; shouldRenderHeader?: boolean; + isScrollable?: boolean; } interface TradeHistoryState { @@ -25,6 +26,7 @@ export class TradeHistory extends React.Component<TradeHistoryProps, TradeHistor public static defaultProps: Partial<TradeHistoryProps> = { isFullWidth: false, shouldRenderHeader: true, + isScrollable: true, }; private _fillPollingIntervalId: number; public constructor(props: TradeHistoryProps) { @@ -53,9 +55,13 @@ export class TradeHistory extends React.Component<TradeHistoryProps, TradeHistor <Divider /> </div> )} - <div className="pt2" style={{ height: 608, overflow: 'scroll' }}> - {this._renderTrades()} - </div> + {this.props.isScrollable ? ( + <div className="pt2" style={{ height: 608, overflow: 'scroll' }}> + {this._renderTrades()} + </div> + ) : ( + this._renderTrades() + )} </div> ); } |