From 4ee87f1476936c130c6b10027aab2cc679c40aa0 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Thu, 5 Jul 2018 12:12:50 +0200 Subject: [PATCH] refactor(react): ternary conditional classnames React v16.x reports errors when using boolean operators for conditional classnames and requires that you instead use ternary style conditional clauses. --- app/components/Activity/InvoiceModal.js | 4 ++-- app/components/Activity/PaymentModal.js | 4 ++-- app/components/Activity/TransactionModal.js | 4 ++-- app/components/Contacts/ConnectManually.js | 6 +++-- app/components/Contacts/ContactModal.js | 2 +- app/components/Contacts/ContactsForm.js | 4 +++- app/components/Contacts/Network.js | 11 +++++----- app/components/Contacts/SubmitChannelForm.js | 4 ++-- app/components/Form/Pay.js | 22 ++++++++++++++----- app/components/Form/Request.js | 4 ++-- app/components/GlobalError/GlobalError.js | 2 +- app/components/Onboarding/Autopilot.js | 8 +++++-- .../Onboarding/ConnectionDetails.js | 12 +++++----- app/components/Onboarding/ConnectionType.js | 8 +++++-- app/components/Onboarding/Login.js | 6 ++--- .../Onboarding/NewWalletPassword.js | 15 ++++++++----- app/components/Onboarding/Signup.js | 4 ++-- app/components/Wallet/ReceiveModal.js | 10 +++++++-- app/components/Wallet/Wallet.js | 2 +- app/routes/activity/components/Activity.js | 10 ++++++--- .../components/components/Invoice/Invoice.js | 2 +- 21 files changed, 91 insertions(+), 53 deletions(-) diff --git a/app/components/Activity/InvoiceModal.js b/app/components/Activity/InvoiceModal.js index 9836ff8c..f627e286 100644 --- a/app/components/Activity/InvoiceModal.js +++ b/app/components/Activity/InvoiceModal.js @@ -69,7 +69,7 @@ const InvoiceModal = ({ -