diff --git a/common/actions/swap/actionTypes.ts b/common/actions/swap/actionTypes.ts index 2ef859dd..b5b636e1 100644 --- a/common/actions/swap/actionTypes.ts +++ b/common/actions/swap/actionTypes.ts @@ -8,7 +8,7 @@ export interface Pairs { } export interface SwapInput { - id: string; + label: string; amount: number | string; } diff --git a/common/components/AddressField.tsx b/common/components/AddressField.tsx index aff92573..a9e1f065 100644 --- a/common/components/AddressField.tsx +++ b/common/components/AddressField.tsx @@ -1,6 +1,8 @@ import React from 'react'; import { AddressFieldFactory } from './AddressFieldFactory'; import { donationAddressMap } from 'config'; +import translate from 'translations'; +import { Input } from 'components/ui'; interface Props { isReadOnly?: boolean; @@ -9,16 +11,20 @@ interface Props { export const AddressField: React.SFC = ({ isReadOnly }) => ( ( - - - +
+ +
)} /> ); diff --git a/common/components/AddressFieldFactory/AddressInputFactory.tsx b/common/components/AddressFieldFactory/AddressInputFactory.tsx index bb00ddd2..4723a6cf 100644 --- a/common/components/AddressFieldFactory/AddressInputFactory.tsx +++ b/common/components/AddressFieldFactory/AddressInputFactory.tsx @@ -1,6 +1,5 @@ import React, { Component } from 'react'; import { Identicon, Spinner } from 'components/ui'; -import translate from 'translations'; import { Query } from 'components/renderCbs'; import { ICurrentTo, getCurrentTo, isValidCurrentTo } from 'selectors/transaction'; import { connect } from 'react-redux'; @@ -49,7 +48,6 @@ class AddressInputFactoryClass extends Component { return (
- diff --git a/common/components/AmountField.tsx b/common/components/AmountField.tsx index 3a215fe3..9e71fb67 100644 --- a/common/components/AmountField.tsx +++ b/common/components/AmountField.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { AmountFieldFactory } from './AmountFieldFactory'; import { UnitDropDown } from 'components'; import translate, { translateRaw } from 'translations'; +import { Input } from 'components/ui'; interface Props { hasUnitDropdown?: boolean; @@ -16,12 +17,12 @@ export const AmountField: React.SFC = ({ }) => ( ( - - -
- +
-
+ +
)} /> ); diff --git a/common/components/BalanceSidebar/EquivalentValues.scss b/common/components/BalanceSidebar/EquivalentValues.scss index 0466c8d7..437811c0 100644 --- a/common/components/BalanceSidebar/EquivalentValues.scss +++ b/common/components/BalanceSidebar/EquivalentValues.scss @@ -41,7 +41,6 @@ flex-wrap: nowrap; align-items: center; &-fiat-symbol { - height: 18px; width: 18px; margin-right: 0.5rem; text-align: center; diff --git a/common/components/BalanceSidebar/TokenBalances/AddCustomTokenForm.tsx b/common/components/BalanceSidebar/TokenBalances/AddCustomTokenForm.tsx index efc52718..29c4d742 100644 --- a/common/components/BalanceSidebar/TokenBalances/AddCustomTokenForm.tsx +++ b/common/components/BalanceSidebar/TokenBalances/AddCustomTokenForm.tsx @@ -1,9 +1,8 @@ import React from 'react'; -import classnames from 'classnames'; import { HELP_ARTICLE } from 'config'; import { isPositiveIntegerOrZero, isValidETHAddress } from 'libs/validators'; import translate from 'translations'; -import { HelpLink } from 'components/ui'; +import { HelpLink, Input } from 'components/ui'; import './AddCustomTokenForm.scss'; import { Token } from 'types/network'; @@ -42,7 +41,6 @@ export default class AddCustomTokenForm extends React.PureComponent {field.label} - = () => ( ( - <> - - - +
+ +
)} /> ); diff --git a/common/components/GasLimitField.tsx b/common/components/GasLimitField.tsx index f5b1c8af..a5d62eb7 100644 --- a/common/components/GasLimitField.tsx +++ b/common/components/GasLimitField.tsx @@ -4,6 +4,7 @@ import translate from 'translations'; import { gasLimitValidator } from 'libs/validators'; import { InlineSpinner } from 'components/ui/InlineSpinner'; import './GasLimitField.scss'; +import { Input } from 'components/ui'; interface Props { customLabel?: string; @@ -13,22 +14,24 @@ interface Props { export const GasLimitField: React.SFC = ({ customLabel, disabled }) => ( ( - -
- {customLabel ? : } -
- -
- - +
+
- + +
) : null; }} /> diff --git a/common/components/SendButtonFactory/SendButtonFactory.tsx b/common/components/SendButtonFactory/SendButtonFactory.tsx index 4fbd62a6..dfb815ec 100644 --- a/common/components/SendButtonFactory/SendButtonFactory.tsx +++ b/common/components/SendButtonFactory/SendButtonFactory.tsx @@ -9,6 +9,7 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { AppState } from 'reducers'; import { ConfirmationModal } from 'components/ConfirmationModal'; +import { TextArea } from 'components/ui'; export interface CallbackProps { onClick(): void; @@ -42,12 +43,7 @@ class SendButtonFactoryClass extends Component { ? 'Transaction Parameters' : translate('SEND_raw')} -