aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-20 01:19:48 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-20 01:19:48 +0800
commit66465816ca049118d58ca34bada241fd146f2656 (patch)
treeeed1fe06a2481ef7130ef7c9fc967b1633fd0983 /packages/instant/src
parentff1f0a967802529e5ee50a7ff52d67bae1252b51 (diff)
downloaddexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.tar
dexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.tar.gz
dexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.tar.bz2
dexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.tar.lz
dexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.tar.xz
dexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.tar.zst
dexon-sol-tools-66465816ca049118d58ca34bada241fd146f2656.zip
Getting rid of displayName, and rename usdSection -> _renderUsdSection
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/order_details.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/components/order_details.tsx b/packages/instant/src/components/order_details.tsx
index a7971e1fd..704009d89 100644
--- a/packages/instant/src/components/order_details.tsx
+++ b/packages/instant/src/components/order_details.tsx
@@ -74,7 +74,6 @@ export class EthAmountRow extends React.Component<EthAmountRowProps> {
shouldEmphasize: false,
isEthAmountInBaseUnits: true,
};
- public static displayName = 'EthAmountRow';
public render(): React.ReactNode {
const { rowLabel, ethAmount, isEthAmountInBaseUnits, shouldEmphasize, isLoading } = this.props;
@@ -87,7 +86,7 @@ export class EthAmountRow extends React.Component<EthAmountRowProps> {
{rowLabel}
</Text>
<Container>
- {this._usdSection()}
+ {this._renderUsdSection()}
<Text fontWeight={fontWeight} fontColor={ColorOption.grey}>
{ethFormatter(
ethAmount,
@@ -102,7 +101,7 @@ export class EthAmountRow extends React.Component<EthAmountRowProps> {
</Container>
);
}
- private _usdSection(): React.ReactNode {
+ private _renderUsdSection(): React.ReactNode {
const usdFormatter = this.props.isEthAmountInBaseUnits ? format.ethBaseAmountInUsd : format.ethUnitAmountInUsd;
const shouldHideUsdPriceSection = _.isUndefined(this.props.ethUsdPrice) || _.isUndefined(this.props.ethAmount);
return shouldHideUsdPriceSection ? null : (