refactor: extract wallet-list component

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent b18a4d37e3
commit c5755ac587
7 changed files with 422 additions and 365 deletions
@@ -8,6 +8,8 @@ const COMMAND_WIPE = '/wipe'
const COMMAND_SEED = '/seed'
const COMMAND_RESTORE = '/restore'
const DEFAULT_RECEIVE_GAP_LIMIT = 20
const blockTimeToDate = blockTime =>
blockTime ? moment(blockTime * 1000).format('LLL') : ''
@@ -158,7 +160,7 @@ function loadTemplateAsync(path) {
if (this.readyState == 4) {
if (this.status == 200) resolve(this.responseText)
if (this.status == 404) resolve('Page not found.')
if (this.status == 404) resolve(`<div>Page not found: ${path}</div>`)
}
}