aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-12 09:06:27 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-12 09:06:27 +0800
commit5f7ed71937c8319bb5613dc57f005848b1fa336c (patch)
treebc4eb79d11a8e749643415ebcdc77e475c043412
parentb1a73f5c742b96906e832e532dbdc3e4e9583c6d (diff)
downloaddexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.tar
dexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.tar.gz
dexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.tar.bz2
dexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.tar.lz
dexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.tar.xz
dexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.tar.zst
dexon-sol-tools-5f7ed71937c8319bb5613dc57f005848b1fa336c.zip
Delete old interface and rename BaseCurrencyChoice
-rw-r--r--packages/instant/src/components/order_details.tsx17
1 files changed, 4 insertions, 13 deletions
diff --git a/packages/instant/src/components/order_details.tsx b/packages/instant/src/components/order_details.tsx
index 9eaf2fb2e..8bff0af14 100644
--- a/packages/instant/src/components/order_details.tsx
+++ b/packages/instant/src/components/order_details.tsx
@@ -14,12 +14,12 @@ import { Container } from './ui/container';
import { Flex } from './ui/flex';
import { Text, TextProps } from './ui/text';
-interface BaseCurrenySwitchProps {
+interface BaseCurryChoiceProps {
currencyName: string;
onClick: () => void;
isSelected: boolean;
}
-const BaseCurrencySelector: React.StatelessComponent<BaseCurrenySwitchProps> = props => {
+const BaseCurrencyChoice: React.StatelessComponent<BaseCurryChoiceProps> = props => {
const textStyle: TextProps = { onClick: props.onClick, fontSize: '12px' };
if (props.isSelected) {
textStyle.fontColor = ColorOption.primaryColor;
@@ -106,7 +106,7 @@ export class OrderDetails extends React.Component<OrderDetailsProps> {
</Text>
<Container>
- <BaseCurrencySelector
+ <BaseCurrencyChoice
onClick={this.props.onBaseCurrencySwitchEth}
currencyName="ETH"
isSelected={this.props.baseCurrency === BaseCurrency.ETH}
@@ -114,7 +114,7 @@ export class OrderDetails extends React.Component<OrderDetailsProps> {
<Container marginLeft="3px" marginRight="3px" display="inline">
<Text fontSize="12px">/</Text>
</Container>
- <BaseCurrencySelector
+ <BaseCurrencyChoice
onClick={this.props.onBaseCurrencySwitchUsd}
currencyName="USD"
isSelected={this.props.baseCurrency === BaseCurrency.USD}
@@ -143,15 +143,6 @@ export class OrderDetails extends React.Component<OrderDetailsProps> {
}
}
-export interface EthAmountRowProps {
- rowLabel: string;
- ethAmount?: BigNumber;
- isEthAmountInBaseUnits?: boolean;
- ethUsdPrice?: BigNumber;
- shouldEmphasize?: boolean;
- isLoading: boolean;
-}
-
export interface OrderDetailsRowProps {
labelText: string;
isLabelBold?: boolean;