diff options
author | Dan <danjm.com@gmail.com> | 2018-04-27 08:38:14 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-27 10:46:11 +0800 |
commit | 91c201aa72581a59a0d2ef73a225b1768584dea7 (patch) | |
tree | 00782275e57c568fff16e289002a6c3a91f3c81e /ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js | |
parent | 8ff7806f1b471a90fa3f45ebc10f0f4452ade541 (diff) | |
download | tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.gz tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.zst tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.zip |
Lint fixes and alphabetization for i3725-refactor-send-component
Diffstat (limited to 'ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js')
-rw-r--r-- | ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js b/ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js index 99134a466..c6b75eccd 100644 --- a/ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js +++ b/ui/app/components/send_/send-content/send-row-wrapper/send-row-wrapper.component.js @@ -5,22 +5,22 @@ import SendRowErrorMessage from './send-row-error-message/send-row-error-message export default class SendRowWrapper extends Component { static propTypes = { - label: PropTypes.string, - showError: PropTypes.bool, children: PropTypes.node, errorType: PropTypes.string, + label: PropTypes.string, + showError: PropTypes.bool, }; render () { const { - label, - errorType = '', - showError = false, - children, + children, + errorType = '', + label, + showError = false, } = this.props - let formField = Array.isArray(children) ? children[1] || children[0] : children - let customLabelContent = children.length === 1 ? children[0] : null + const formField = Array.isArray(children) ? children[1] || children[0] : children + const customLabelContent = children.length === 1 ? children[0] : null return ( <div className="send-v2__form-row"> @@ -33,7 +33,7 @@ export default class SendRowWrapper extends Component { {formField} </div> </div> - ); + ) } } |