diff --git a/MainBottomTabs.js b/MainBottomTabs.js index 0abbcbd9f..1e47939ff 100644 --- a/MainBottomTabs.js +++ b/MainBottomTabs.js @@ -39,6 +39,9 @@ const WalletsStackNavigator = createStackNavigator({ TransactionDetails: { screen: details, }, + WalletDetails: { + screen: WalletDetails, + }, RBF: { screen: rbf, }, @@ -110,9 +113,6 @@ const MainBottomTabs = createStackNavigator( ScanQrWif: { screen: scanQrWif, }, - WalletDetails: { - screen: WalletDetails, - }, WalletExport: { screen: WalletExport, }, diff --git a/loc/en.js b/loc/en.js index 3134e2732..bad8ca53d 100644 --- a/loc/en.js +++ b/loc/en.js @@ -41,7 +41,7 @@ module.exports = { bitcoin: 'Bitcoin', }, details: { - title: 'wallet details', + title: 'Wallet', address: 'Address', type: 'Type', label: 'Label', @@ -50,6 +50,8 @@ module.exports = { are_you_sure: 'Are you sure?', yes_delete: 'Yes, delete', no_cancel: 'No, cancel', + delete: 'Delete', + save: 'Save', delete_this_wallet: 'Delete this wallet', export_backup: 'Export / backup', buy_bitcoin: 'Buy Bitcoin', diff --git a/loc/es.js b/loc/es.js index 51a2b23d1..876a81fe3 100644 --- a/loc/es.js +++ b/loc/es.js @@ -45,6 +45,8 @@ module.exports = { address: 'Dirección', type: 'Tipo', label: 'Etiqueta', + delete: 'Eliminar', + save: 'Guardar', destination: 'destino', description: 'descripcion', are_you_sure: '¿Estás seguro?', diff --git a/loc/pt_BR.js b/loc/pt_BR.js index 377186578..117c0ff42 100644 --- a/loc/pt_BR.js +++ b/loc/pt_BR.js @@ -54,6 +54,8 @@ module.exports = { delete_this_wallet: 'Apagar esta wallet', export_backup: 'Exportar / backup', buy_bitcoin: 'Buy Bitcoin', + delete: 'Delete', + save: 'Save', }, export: { title: 'Exportar Wallet', diff --git a/loc/pt_PT.js b/loc/pt_PT.js index d1c3aa902..bab518a48 100644 --- a/loc/pt_PT.js +++ b/loc/pt_PT.js @@ -44,6 +44,8 @@ module.exports = { title: 'wallet', address: 'Endereço', type: 'Tipo', + delete: 'Delete', + save: 'Save', label: 'Nome', destination: 'destination', description: 'description', diff --git a/loc/ru.js b/loc/ru.js index db092bc4a..6e609556a 100644 --- a/loc/ru.js +++ b/loc/ru.js @@ -45,6 +45,8 @@ module.exports = { address: 'Адрес', type: 'Тип', label: 'Метка', + delete: 'Delete', + save: 'Save', are_you_sure: 'Вы уверены?', yes_delete: 'Да, удалить', destination: 'destination', diff --git a/loc/ua.js b/loc/ua.js index ab839af2b..f4b3542cb 100644 --- a/loc/ua.js +++ b/loc/ua.js @@ -44,6 +44,8 @@ module.exports = { title: 'Інформація про Гаманець', address: 'Адреса', type: 'Тип', + delete: 'Delete', + save: 'Save', label: 'Мітка', destination: 'destination', description: 'description', diff --git a/screen/wallets/details.js b/screen/wallets/details.js index e7d8c25e2..6bd4c1484 100644 --- a/screen/wallets/details.js +++ b/screen/wallets/details.js @@ -1,18 +1,9 @@ +/* global alert */ import React, { Component } from 'react'; -import { ActivityIndicator, View } from 'react-native'; -import { - BlueFormInput, - BlueButton, - SafeBlueArea, - BlueCard, - BlueText, - BlueFormLabel, - BlueFormInputAddress, - BlueSpacing20, - BlueNavigationStyle, -} from '../../BlueComponents'; +import { ActivityIndicator, View, Button, Text, TextInput, Alert } from 'react-native'; +import { BlueButton, SafeBlueArea, BlueCard, BlueFormInputAddress, BlueSpacing20, BlueNavigationStyle } from '../../BlueComponents'; import PropTypes from 'prop-types'; -import { LightningCustodianWallet } from '../../class/lightning-custodian-wallet' +import { LightningCustodianWallet } from '../../class/lightning-custodian-wallet'; let EV = require('../../events'); /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); @@ -20,9 +11,17 @@ let loc = require('../../loc'); export default class WalletDetails extends Component { static navigationOptions = ({ navigation }) => ({ - ...BlueNavigationStyle(navigation, true), + ...BlueNavigationStyle(), title: loc.wallets.details.title, - headerLeft: null, + headerRight: ( +