diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-10-18 15:10:33 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-10-18 15:10:33 +0800 |
commit | 95775dca1fbd115f57ee7cde314ebcdb9ca80c45 (patch) | |
tree | dc18138ee3faa1c7bafd897df7112f7c8c917369 /packages/website/ts/components/portal/portal.tsx | |
parent | 86aa5f9643da7ccdc32e77220db22a949a7507fa (diff) | |
download | dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.tar dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.tar.gz dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.tar.bz2 dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.tar.lz dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.tar.xz dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.tar.zst dexon-0x-contracts-95775dca1fbd115f57ee7cde314ebcdb9ca80c45.zip |
feat(website): add expanded and minimized display types to relayer grid
Diffstat (limited to 'packages/website/ts/components/portal/portal.tsx')
-rw-r--r-- | packages/website/ts/components/portal/portal.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index b42954f60..1470239d6 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -18,7 +18,7 @@ import { Loading } from 'ts/components/portal/loading'; import { Menu, MenuTheme } from 'ts/components/portal/menu'; import { Section } from 'ts/components/portal/section'; import { TextHeader } from 'ts/components/portal/text_header'; -import { RelayerIndex } from 'ts/components/relayer_index/relayer_index'; +import { RelayerIndex, RelayerIndexCellStyle } from 'ts/components/relayer_index/relayer_index'; import { TokenBalances } from 'ts/components/token_balances'; import { TopBar, TopBarDisplayType } from 'ts/components/top_bar/top_bar'; import { TradeHistory } from 'ts/components/trade_history/trade_history'; @@ -541,6 +541,7 @@ export class Portal extends React.Component<PortalProps, PortalState> { } private _renderRelayerIndexSection(): React.ReactNode { const isMobile = utils.isMobileWidth(this.props.screenWidth); + // TODO(bmillman): revert RelayerIndex cellStyle to Expanded once data pipeline is tracking v2 volume return ( <Section header={!isMobile && <TextHeader labelText="0x Relayers" />} @@ -551,7 +552,11 @@ export class Portal extends React.Component<PortalProps, PortalState> { {this._renderStartOnboarding()} </Container> )} - <RelayerIndex networkId={this.props.networkId} screenWidth={this.props.screenWidth} /> + <RelayerIndex + networkId={this.props.networkId} + screenWidth={this.props.screenWidth} + cellStyle={RelayerIndexCellStyle.Minimized} + /> </Container> } /> |