diff --git a/.eslintrc b/.eslintrc index a13d37b4..a73ca48f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,9 +3,9 @@ "eslint-config-airbnb", "prettier", "prettier/babel", + "plugin:flowtype/recommended", "prettier/flowtype", "prettier/react", - "plugin:flowtype/recommended", "plugin:jest/recommended" ], "globals": { diff --git a/src/components/modals/external/Tezos/index.js b/src/components/modals/external/Tezos/index.js index 428b5e1a..f5d1176e 100644 --- a/src/components/modals/external/Tezos/index.js +++ b/src/components/modals/external/Tezos/index.js @@ -16,8 +16,8 @@ import TezosImage from './images/xtz.png'; import type { Props as BaseProps } from '../../Container'; type Props = { - onCancel: $ElementType<$ElementType, 'onCancel'>; -} + onCancel: $ElementType<$ElementType, 'onCancel'>, +}; const Wrapper = styled.div` width: 100%; @@ -47,11 +47,7 @@ const Img = styled.img` const TezosWallet = (props: Props) => ( - +

Tezos wallet

@@ -67,4 +63,4 @@ TezosWallet.propTypes = { onCancel: PropTypes.func.isRequired, }; -export default TezosWallet; \ No newline at end of file +export default TezosWallet; diff --git a/src/components/modals/index.js b/src/components/modals/index.js index 3d7a9642..be40b967 100644 --- a/src/components/modals/index.js +++ b/src/components/modals/index.js @@ -169,9 +169,9 @@ const getExternalContextModal = (props: Props) => { case 'xlm': return ; case 'ada': - return (); + return ; case 'xtz': - return (); + return ; default: return null; } diff --git a/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js b/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js index eac4ed01..46413912 100644 --- a/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js +++ b/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js @@ -102,17 +102,8 @@ const Left = styled.div` const AdvancedForm = (props: Props) => { const { network } = props.selectedAccount; if (!network) return null; - const { - errors, - warnings, - infos, - fee, - destinationTag, - } = props.sendForm; - const { - onFeeChange, - onDestinationTagChange, - } = props.sendFormActions; + const { errors, warnings, infos, fee, destinationTag } = props.sendForm; + const { onFeeChange, onDestinationTagChange } = props.sendFormActions; return ( @@ -152,17 +143,24 @@ const AdvancedForm = (props: Props) => { } + content={ + + } maxWidth={200} readMoreLink="https://wiki.trezor.io/Ripple_(XRP)" placement="top" @@ -175,8 +173,10 @@ const AdvancedForm = (props: Props) => { - )} - bottomText={errors.destinationTag || warnings.destinationTag || infos.destinationTag} + } + bottomText={ + errors.destinationTag || warnings.destinationTag || infos.destinationTag + } value={destinationTag} onChange={event => onDestinationTagChange(event.target.value)} />