Lily-Technologies / lily-wallet

The best way to secure your bitcoin.
https://lily-wallet.com
Other
94 stars 15 forks source link

refactor, get currentAccount and setCurrentAccountId from context #45

Closed KayBeSee closed 4 years ago

KayBeSee commented 4 years ago

This refactors all the accountMap and currentAccount information to use Context instead of prop drilling from App.js.

As a side effect, it fixes a few UI bugs when initially loading in accountMap data at app startup and during data refreshing.