From 2f8f6a59eb4692a74d8ca9219c818b939a842241 Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 7 Aug 2018 14:22:54 +0200 Subject: [PATCH] Don't display QR code on recipient field in Send modal --- src/components/RecipientAddress/index.js | 34 ++++++++----------- .../modals/Send/fields/RecipientField.js | 2 +- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/components/RecipientAddress/index.js b/src/components/RecipientAddress/index.js index 51b73f1c..24f7895d 100644 --- a/src/components/RecipientAddress/index.js +++ b/src/components/RecipientAddress/index.js @@ -85,27 +85,23 @@ class RecipientAddress extends PureComponent { const { onChange, withQrCode, value, ...rest } = this.props const { qrReaderOpened } = this.state + const renderRight = withQrCode ? ( + + + {qrReaderOpened && ( + + + + + + + )} + + ) : null + return ( - - - {qrReaderOpened && ( - - - - - - - )} - - } - /> + ) } diff --git a/src/components/modals/Send/fields/RecipientField.js b/src/components/modals/Send/fields/RecipientField.js index 67c69e60..872a6dd7 100644 --- a/src/components/modals/Send/fields/RecipientField.js +++ b/src/components/modals/Send/fields/RecipientField.js @@ -81,7 +81,7 @@ class RecipientField extends Component, { isVali />