Browse Source

REF: lint

walletselecttest
Overtorment 5 years ago
parent
commit
85074da742
  1. 5
      appcenter-post-build-get-pr-number.js
  2. 2
      loc/pt_PT.js
  3. 3
      loc/th_TH.js
  4. 2
      screen/lnd/lndCreateInvoice.js
  5. 5
      screen/lnd/scanLndInvoice.js
  6. 4
      screen/send/details.js
  7. 2
      screen/transactions/transactionStatus.js
  8. 4
      screen/wallets/transactions.js

5
appcenter-post-build-get-pr-number.js

@ -2,7 +2,10 @@ const https = require('https');
const auth = 'Basic ' + Buffer.from('Overtorment' + ':' + process.env.GITHUB).toString('base64');
const branch = require('child_process').execSync("git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3").toString().trim();
const branch = require('child_process')
.execSync('git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3')
.toString()
.trim();
const req = https.request(
{

2
loc/pt_PT.js

@ -233,7 +233,7 @@ module.exports = {
pleasebackup: {
title: 'A sua wallet foi criada...',
text:
"Por favor escreva esta frase mnemónica numa folha de papel. É o seu backup e pode usá-lo para restaurar a sua wallet noutro device. Pode usar o Electrum wallet em desktop (https://electrum.org/) para restaurar a sua wallet.",
'Por favor escreva esta frase mnemónica numa folha de papel. É o seu backup e pode usá-lo para restaurar a sua wallet noutro device. Pode usar o Electrum wallet em desktop (https://electrum.org/) para restaurar a sua wallet.',
ok: 'OK, eu escrevi-a num papel!',
},
lndViewInvoice: {

3
loc/th_TH.js

@ -23,8 +23,7 @@ module.exports = {
latest_transaction: 'ธุรกรรมล่าสุด',
empty_txs1: 'ธุรกรรมจะปรากฏที่นี่,',
empty_txs2: 'ไม่มี ณ ขณะนี้',
empty_txs1_lightning:
'ควรใช้ไลท์นิงเน็ตเวิร์คสำหรับธุรกรรมประจำวันเท่านั้น ธุรกรรมทันใจและมีค่าธรรมเนียมน้อยมาก',
empty_txs1_lightning: 'ควรใช้ไลท์นิงเน็ตเวิร์คสำหรับธุรกรรมประจำวันเท่านั้น ธุรกรรมทันใจและมีค่าธรรมเนียมน้อยมาก',
empty_txs2_lightning: '\nแตะที่ "จัดการเงิน" เพื่อเริ่มใช้งาน และเติมเงิน',
tap_here_to_buy: 'กดที่นี่เพื่อซื้อบิตคอยน์',
},

2
screen/lnd/lndCreateInvoice.js

@ -54,7 +54,7 @@ export default class LNDCreateInvoice extends Component {
};
}
componentDidMount () {
componentDidMount() {
if (this.props.navigation.state.params.uri) {
this.processLnurl(this.props.navigation.getParam('uri'));
}

5
screen/lnd/scanLndInvoice.js

@ -216,9 +216,7 @@ export default class ScanLndInvoice extends React.Component {
this.props.navigation.navigate('SelectWallet', { onWalletSelect: this.onWalletSelect, chainType: Chain.OFFCHAIN })
}
>
<Text style={{ color: '#9aa0aa', fontSize: 14, marginRight: 8 }}>
{loc.wallets.select_wallet.toLowerCase()}
</Text>
<Text style={{ color: '#9aa0aa', fontSize: 14, marginRight: 8 }}>{loc.wallets.select_wallet.toLowerCase()}</Text>
<Icon name="angle-right" size={18} type="font-awesome" color="#9aa0aa" />
</TouchableOpacity>
)}
@ -320,7 +318,6 @@ export default class ScanLndInvoice extends React.Component {
</BlueCard>
</View>
{this.renderWalletSelectionButton()}
</View>
<BlueDismissKeyboardInputAccessory />

4
screen/send/details.js

@ -764,9 +764,7 @@ export default class SendDetails extends Component {
this.props.navigation.navigate('SelectWallet', { onWalletSelect: this.onWalletSelect, chainType: Chain.ONCHAIN })
}
>
<Text style={{ color: '#9aa0aa', fontSize: 14, marginRight: 8 }}>
{loc.wallets.select_wallet.toLowerCase()}
</Text>
<Text style={{ color: '#9aa0aa', fontSize: 14, marginRight: 8 }}>{loc.wallets.select_wallet.toLowerCase()}</Text>
<Icon name="angle-right" size={18} type="font-awesome" color="#9aa0aa" />
</TouchableOpacity>
)}

2
screen/transactions/transactionStatus.js

@ -338,7 +338,7 @@ export default class TransactionsStatus extends Component {
}
style={{ color: '#d0021b', fontSize: 15, fontWeight: '500', textAlign: 'center' }}
>
{"Cancel Transaction"}
{'Cancel Transaction'}
</Text>
</TouchableOpacity>
</React.Fragment>

4
screen/wallets/transactions.js

@ -39,7 +39,7 @@ let BlueElectrum = require('../../BlueElectrum');
export default class WalletTransactions extends Component {
static navigationOptions = ({ navigation }) => {
return ({
return {
headerRight: (
<TouchableOpacity
disabled={navigation.getParam('isLoading') === true}
@ -60,7 +60,7 @@ export default class WalletTransactions extends Component {
shadowRadius: 0,
},
headerTintColor: '#FFFFFF',
});
};
};
walletBalanceText = null;

Loading…
Cancel
Save