Browse Source

REF: lint

walletselecttest
Overtorment 5 years ago
parent
commit
85074da742
  1. 5
      appcenter-post-build-get-pr-number.js
  2. 2
      loc/en.js
  3. 2
      loc/pt_PT.js
  4. 3
      loc/th_TH.js
  5. 2
      loc/zh_tw.js
  6. 2
      screen/lnd/lndCreateInvoice.js
  7. 9
      screen/lnd/scanLndInvoice.js
  8. 4
      screen/send/details.js
  9. 2
      screen/transactions/transactionStatus.js
  10. 4
      screen/wallets/transactions.js
  11. 2
      screen/wallets/walletMigrate.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/en.js

@ -241,4 +241,4 @@ module.exports = {
additional_info: 'Additional Information',
open_direct_channel: 'Open direct channel with this node:',
},
};
};

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
loc/zh_tw.js

@ -232,4 +232,4 @@ module.exports = {
additional_info: 'Additional Information',
open_direct_channel: 'Open direct channel with this node:',
},
};
};

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'));
}

9
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>
)}
@ -272,7 +270,7 @@ export default class ScanLndInvoice extends React.Component {
inputAccessoryViewID={BlueDismissKeyboardInputAccessory.InputAccessoryViewID}
/>
</View>
<BlueCard>
<BlueAddressInput
onChangeText={text => {
@ -301,7 +299,7 @@ export default class ScanLndInvoice extends React.Component {
{this.state.expiresIn !== undefined && (
<Text style={{ color: '#81868e', fontSize: 12, left: 20, top: 10 }}>Expires in: {this.state.expiresIn}</Text>
)}
<BlueCard>
{this.state.isLoading ? (
<View>
@ -319,7 +317,6 @@ export default class ScanLndInvoice extends React.Component {
</BlueCard>
</BlueCard>
</View>
{this.renderWalletSelectionButton()}
</View>

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;

2
screen/wallets/walletMigrate.js

@ -103,4 +103,4 @@ export default class WalletMigrate {
console.log('Migration was successful. Exiting migration...');
this.onComplete();
}
}
}

Loading…
Cancel
Save