REF: analytics

This commit is contained in:
Overtorment 2018-07-06 17:28:04 +01:00
parent bce7dace88
commit 37c1de472f
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ let A = function(event) {
A.ENUM = {
INIT: 'INIT',
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE',
CREATED_WALLET: 'CREATED_WALLET',
};
module.exports = A;

View File

@ -12,6 +12,8 @@ import {
} from '../../BlueComponents';
import PropTypes from 'prop-types';
let EV = require('../../events');
let A = require('../../analytics');
/** @type {AppStorage} */
let BlueApp = require('../../BlueApp');
let loc = require('../../loc');
const { height, width } = Dimensions.get('window');
@ -100,6 +102,7 @@ export default class WalletsAdd extends Component {
BlueApp.wallets.push(w);
await BlueApp.saveToDisk();
EV(EV.enum.WALLETS_COUNT_CHANGED);
A(A.ENUM.CREATED_WALLET);
}, 1);
}}
/>