aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;