From 856431390f0801fe3aff2e7f514be6a0b38a4095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Fri, 29 Jun 2018 11:59:48 +0200 Subject: [PATCH] Pixel push step import --- src/components/base/AccountsList/index.js | 2 +- .../modals/AddAccounts/steps/03-step-import.js | 18 +++++++++--------- static/i18n/en/app.yml | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/base/AccountsList/index.js b/src/components/base/AccountsList/index.js index 024c050c..2793d33c 100644 --- a/src/components/base/AccountsList/index.js +++ b/src/components/base/AccountsList/index.js @@ -32,7 +32,7 @@ class AccountsList extends Component< }, > { state = { - collapsed: false, + collapsed: !!this.props.collapsible, } toggleCollapse = () => { this.setState(({ collapsed }) => ({ collapsed: !collapsed })) diff --git a/src/components/modals/AddAccounts/steps/03-step-import.js b/src/components/modals/AddAccounts/steps/03-step-import.js index 6f8385af..b84586cc 100644 --- a/src/components/modals/AddAccounts/steps/03-step-import.js +++ b/src/components/modals/AddAccounts/steps/03-step-import.js @@ -213,7 +213,7 @@ class StepImport extends PureComponent { }) const importedAccountsListTitle = t('app:addAccounts.accountAlreadyImportedSubtitle', { - count: importableAccounts.length, + count: importedAccounts.length, }) const importableAccountsEmpty = t('app:addAccounts.noAccountToImport', { currencyName }) @@ -224,14 +224,6 @@ class StepImport extends PureComponent { - {importedAccounts.length === 0 ? null : ( - - )} {importableAccounts.length === 0 ? null : ( { hideAmount /> )} + {importedAccounts.length === 0 ? null : ( + + )} {scanStatus === 'scanning' ? ( diff --git a/static/i18n/en/app.yml b/static/i18n/en/app.yml index e85caab8..80f2cf63 100644 --- a/static/i18n/en/app.yml +++ b/static/i18n/en/app.yml @@ -150,9 +150,9 @@ addAccounts: connectDevice: Connect device import: Select accounts finish: Confirmation - accountAlreadyImportedSubtitle: Already in portfolio - accountToImportSubtitle: 'Select account' - accountToImportSubtitle_plural: 'Select accounts' + accountAlreadyImportedSubtitle: '{{count}} Already in portfolio' + accountToImportSubtitle: 'Add existing account' + accountToImportSubtitle_plural: 'Add existing accounts' selectAll: Select all ({{count}}) unselectAll: Deselect all ({{count}}) editName: Edit name @@ -162,7 +162,7 @@ addAccounts: success: Account added to your portfolio # success_plural: Accounts successfully added to your portfolio. createNewAccount: - title: Create a new account + title: Add a new account noOperationOnLastAccount: 'You have to receive crypto assets on <1><0>{{accountName}} before you can create a new account.' noAccountToCreate: No <1><0>{{currencyName}} account was found to create somethingWentWrong: Something went wrong during synchronization, please try again. @@ -257,7 +257,7 @@ send: totalSpent: Total steps: amount: - title: Send crypto assets + title: crypto assets selectAccountDebit: Select an account to debit recipientAddress: Recipient address # can't control the tooltip! amount: Amount