mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
codestyle
This commit is contained in:
parent
f84f797f28
commit
0718687fc0
4 changed files with 6 additions and 6 deletions
|
@ -29,7 +29,7 @@
|
|||
"android": "react-native-scripts android",
|
||||
"ios": "react-native-scripts ios",
|
||||
"postinstall": "./node_modules/.bin/rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path --hack",
|
||||
"test": "nodejs ./node_modules/.bin/mocha tests/* && node node_modules/jest/bin/jest.js",
|
||||
"test": "nodejs ./node_modules/.bin/mocha tests/* && node node_modules/jest/bin/jest.js && npm run lint",
|
||||
"lint": "./node_modules/.bin/eslint *.js screen/**/*.js --fix"
|
||||
},
|
||||
"jest": {
|
||||
|
|
|
@ -61,7 +61,7 @@ export default class CameraExample extends React.Component {
|
|||
<Camera
|
||||
style={{ flex: 1 }}
|
||||
type={this.state.type}
|
||||
onBarCodeRead={(ret) => this.onBarCodeRead(ret)}
|
||||
onBarCodeRead={ret => this.onBarCodeRead(ret)}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
|
|
|
@ -96,7 +96,7 @@ export default class CameraExample extends React.Component {
|
|||
<Camera
|
||||
style={{ flex: 1 }}
|
||||
type={this.state.type}
|
||||
onBarCodeRead={(ret) => this.onBarCodeRead(ret)}
|
||||
onBarCodeRead={ret => this.onBarCodeRead(ret)}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
|
|
|
@ -33,11 +33,11 @@ export default class CameraExample extends React.Component {
|
|||
};
|
||||
|
||||
async onBarCodeRead(ret) {
|
||||
console.log('onBarCodeRead', ret)
|
||||
console.log('onBarCodeRead', ret);
|
||||
for (let w of BlueApp.wallets) {
|
||||
// lookig for duplicates
|
||||
if (w.getSecret() === ret.data) {
|
||||
alert('Such wallet already exists')
|
||||
alert('Such wallet already exists');
|
||||
return; // duplicate, not adding
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ export default class CameraExample extends React.Component {
|
|||
<Camera
|
||||
style={{ flex: 1 }}
|
||||
type={this.state.type}
|
||||
onBarCodeRead={(ret) => this.onBarCodeRead(ret)}
|
||||
onBarCodeRead={ret => this.onBarCodeRead(ret)}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
|
|
Loading…
Add table
Reference in a new issue