diff --git a/src/components/AccountPage/index.js b/src/components/AccountPage/index.js index 9abb8b35..6486ffaf 100644 --- a/src/components/AccountPage/index.js +++ b/src/components/AccountPage/index.js @@ -143,7 +143,7 @@ class AccountPage extends PureComponent { { {accountName ? ( - {/* eslint-disable-line react/jsx-no-literals */} - Address for {accountName} + {'Address for '} + {accountName} ) : ( t('app:currentAddress.title') diff --git a/src/components/DashboardPage/AccountCard.js b/src/components/DashboardPage/AccountCard.js index 08ffa6fb..7d89941a 100644 --- a/src/components/DashboardPage/AccountCard.js +++ b/src/components/DashboardPage/AccountCard.js @@ -89,7 +89,7 @@ class AccountCard extends PureComponent<{ height={52} hideAxis isInteractive={false} - id={`account-chart-${account.id}`} /* eslint-disable-line react/jsx-no-literals */ + id={`account-chart-${account.id}`} unit={account.unit} /> diff --git a/src/components/MainSideBar/index.js b/src/components/MainSideBar/index.js index e2d60919..63f83a84 100644 --- a/src/components/MainSideBar/index.js +++ b/src/components/MainSideBar/index.js @@ -94,10 +94,8 @@ class MainSideBar extends PureComponent { icon={IconPieChart} iconActiveColor="wallet" onClick={this.handleClickDashboard} - isActive={pathname === '/'} /* eslint-disable-line react/jsx-no-literals */ - hasNotif={ - updateStatus === 'downloaded' /* eslint-disable-line react/jsx-no-literals */ - } + isActive={pathname === '/'} + hasNotif={updateStatus === 'downloaded'} /> { icon={IconManager} iconActiveColor="wallet" onClick={this.handleClickManager} - isActive={pathname === '/manager'} /* eslint-disable-line react/jsx-no-literals */ + isActive={pathname === '/manager'} /> @@ -139,10 +137,7 @@ class MainSideBar extends PureComponent { key={account.id} account={account} push={this.push} - isActive={ - pathname === - `/account/${account.id}` /* eslint-disable-line react/jsx-no-literals */ - } + isActive={pathname === `/account/${account.id}`} /> ))} diff --git a/src/components/Onboarding/steps/GenuineCheck.js b/src/components/Onboarding/steps/GenuineCheck.js index 1aaa2103..69f87239 100644 --- a/src/components/Onboarding/steps/GenuineCheck.js +++ b/src/components/Onboarding/steps/GenuineCheck.js @@ -128,7 +128,7 @@ class GenuineCheck extends PureComponent { - 1.{/* eslint-disable-line react/jsx-no-literals */} + {'1.'} {t('onboarding:genuineCheck.steps.step1.title')} @@ -145,7 +145,7 @@ class GenuineCheck extends PureComponent { - 2.{/* eslint-disable-line react/jsx-no-literals */} + {'2.'} {t('onboarding:genuineCheck.steps.step2.title')} @@ -162,7 +162,7 @@ class GenuineCheck extends PureComponent { - 3.{/* eslint-disable-line react/jsx-no-literals */} + {'3.'} {t('onboarding:genuineCheck.steps.step3.title')} diff --git a/src/components/Onboarding/steps/SelectPIN/SelectPINblue.js b/src/components/Onboarding/steps/SelectPIN/SelectPINblue.js index 70ce4063..5fa2e34e 100644 --- a/src/components/Onboarding/steps/SelectPIN/SelectPINblue.js +++ b/src/components/Onboarding/steps/SelectPIN/SelectPINblue.js @@ -23,17 +23,17 @@ class SelectPIN extends PureComponent { const stepsLedgerBlue = [ { key: 'step1', - icon: 1. /* eslint-disable-line react/jsx-no-literals */, + icon: {'1.'}, desc: t('onboarding:selectPIN.instructions.ledgerBlue.step1'), }, { key: 'step2', - icon: 2. /* eslint-disable-line react/jsx-no-literals */, + icon: {'2.'}, desc: t('onboarding:selectPIN.instructions.ledgerBlue.step2'), }, { key: 'step3', - icon: 3. /* eslint-disable-line react/jsx-no-literals */, + icon: {'3.'}, desc: t('onboarding:selectPIN.instructions.ledgerBlue.step3'), }, ] diff --git a/src/components/Onboarding/steps/SelectPIN/SelectPINnano.js b/src/components/Onboarding/steps/SelectPIN/SelectPINnano.js index 80f807e8..4b4f4d0f 100644 --- a/src/components/Onboarding/steps/SelectPIN/SelectPINnano.js +++ b/src/components/Onboarding/steps/SelectPIN/SelectPINnano.js @@ -23,22 +23,22 @@ class SelectPINnano extends PureComponent { const stepsLedgerNano = [ { key: 'step1', - icon: 1. /* eslint-disable-line react/jsx-no-literals */, + icon: {'1.'}, desc: t('onboarding:selectPIN.instructions.ledgerNano.step1'), }, { key: 'step2', - icon: 2. /* eslint-disable-line react/jsx-no-literals */, + icon: {'2.'}, desc: t('onboarding:selectPIN.instructions.ledgerNano.step2'), }, { key: 'step3', - icon: 3. /* eslint-disable-line react/jsx-no-literals */, + icon: {'3.'}, desc: t('onboarding:selectPIN.instructions.ledgerNano.step3'), }, { key: 'step4', - icon: 4. /* eslint-disable-line react/jsx-no-literals */, + icon: {'4.'}, desc: t('onboarding:selectPIN.instructions.ledgerNano.step4'), }, ] diff --git a/src/components/Onboarding/steps/WriteSeed/WriteSeedBlue.js b/src/components/Onboarding/steps/WriteSeed/WriteSeedBlue.js index 32ff7eb6..7f7f8d48 100644 --- a/src/components/Onboarding/steps/WriteSeed/WriteSeedBlue.js +++ b/src/components/Onboarding/steps/WriteSeed/WriteSeedBlue.js @@ -29,17 +29,17 @@ class WriteSeedBlue extends PureComponent { const steps = [ { key: 'step1', - icon: 1., /* eslint-disable-line react/jsx-no-literals */ + icon: {'1.'}, desc: t('onboarding:writeSeed.blue.step1'), }, { key: 'step2', - icon: 2., /* eslint-disable-line react/jsx-no-literals */ + icon: {'2.'}, desc: t('onboarding:writeSeed.blue.step2'), }, { key: 'step3', - icon: 3., /* eslint-disable-line react/jsx-no-literals */ + icon: {'3.'}, desc: t('onboarding:writeSeed.blue.step3'), }, ] diff --git a/src/components/Onboarding/steps/WriteSeed/WriteSeedNano.js b/src/components/Onboarding/steps/WriteSeed/WriteSeedNano.js index 14fb41f9..d1e76f4d 100644 --- a/src/components/Onboarding/steps/WriteSeed/WriteSeedNano.js +++ b/src/components/Onboarding/steps/WriteSeed/WriteSeedNano.js @@ -29,17 +29,17 @@ class WriteSeedNano extends PureComponent { const steps = [ { key: 'step1', - icon: 1. /* eslint-disable-line react/jsx-no-literals */, + icon: {'1.'}, desc: t('onboarding:writeSeed.nano.step1'), }, { key: 'step2', - icon: 2. /* eslint-disable-line react/jsx-no-literals */, + icon: {'2.'}, desc: t('onboarding:writeSeed.nano.step2'), }, { key: 'step3', - icon: 3. /* eslint-disable-line react/jsx-no-literals */, + icon: {'3.'}, desc: t('onboarding:writeSeed.nano.step3'), }, ] diff --git a/src/components/Onboarding/steps/WriteSeed/WriteSeedRestore.js b/src/components/Onboarding/steps/WriteSeed/WriteSeedRestore.js index 379419fc..53de3ce5 100644 --- a/src/components/Onboarding/steps/WriteSeed/WriteSeedRestore.js +++ b/src/components/Onboarding/steps/WriteSeed/WriteSeedRestore.js @@ -30,22 +30,22 @@ class WriteSeedRestore extends PureComponent { const steps = [ { key: 'step1', - icon: 1. /* eslint-disable-line react/jsx-no-literals */, + icon: {'1.'}, desc: t('onboarding:writeSeed.restore.step1'), }, { key: 'step2', - icon: 2. /* eslint-disable-line react/jsx-no-literals */, + icon: {'2.'}, desc: t('onboarding:writeSeed.restore.step2'), }, { key: 'step3', - icon: 3. /* eslint-disable-line react/jsx-no-literals */, + icon: {'3.'}, desc: t('onboarding:writeSeed.restore.step3'), }, { key: 'step4', - icon: 4. /* eslint-disable-line react/jsx-no-literals */, + icon: {'4.'}, desc: t('onboarding:writeSeed.restore.step4'), }, ] diff --git a/src/components/RequestAmount/index.js b/src/components/RequestAmount/index.js index d16c2637..139710cc 100644 --- a/src/components/RequestAmount/index.js +++ b/src/components/RequestAmount/index.js @@ -155,7 +155,7 @@ export class RequestAmount extends PureComponent { onChange={this.onLeftChange} renderRight={{account.unit.code}} /> - = {/* eslint-disable-line react/jsx-no-literals */} + {'='} { {this._items.map(i => ( - + ))} diff --git a/src/components/base/StepperNumber/index.js b/src/components/base/StepperNumber/index.js index 050f6996..52ac7ed3 100644 --- a/src/components/base/StepperNumber/index.js +++ b/src/components/base/StepperNumber/index.js @@ -140,15 +140,14 @@ class StepperNumber extends PureComponent { const isMin = this.isMin(value) const isMax = this.isMax(value) - /* eslint-disable react/jsx-no-literals */ return ( - - - + + {'-'} {value} - + + {'+'} ) diff --git a/src/components/modals/AddAccounts/steps/02-step-connect-device.js b/src/components/modals/AddAccounts/steps/02-step-connect-device.js index 2013dada..d4e210c4 100644 --- a/src/components/modals/AddAccounts/steps/02-step-connect-device.js +++ b/src/components/modals/AddAccounts/steps/02-step-connect-device.js @@ -18,7 +18,6 @@ function StepConnectDevice({ t, currency, currentDevice, setState }: StepProps) - {/* eslint-disable react/jsx-no-literals */} {`You're about to import your `} @@ -28,7 +27,6 @@ function StepConnectDevice({ t, currency, currentDevice, setState }: StepProps) {` account(s) from your Ledger device. Please follow the steps below:`} - {/* eslint-enable react/jsx-no-literals */} { onUpdateAccount={this.handleUpdateAccount} onSelectAll={this.handleSelectAll} onUnselectAll={this.handleUnselectAll} - isLoading={scanStatus === 'scanning'} /* eslint-disable-line react/jsx-no-literals */ + isLoading={scanStatus === 'scanning'} /> @@ -234,7 +236,7 @@ export const StepImportFooter = ({ return ( {currency && } - diff --git a/src/components/modals/OperationDetails.js b/src/components/modals/OperationDetails.js index f80da7c6..6f0b23c1 100644 --- a/src/components/modals/OperationDetails.js +++ b/src/components/modals/OperationDetails.js @@ -153,7 +153,7 @@ const OperationDetails = connect(mapStateToProps)((props: Props) => { ? t('app:operationDetails.confirmed') : t('app:operationDetails.notConfirmed')} - {`(${confirmations})`} {/* eslint-disable-line react/jsx-no-literals */} + {`(${confirmations})`}