Use ethereum-blockies-base64 (#1326)
* use makeBlockie from ethereum-blockies-base64 * adjust type ethereum-blockies-base64 type declaration * add ethereum-blockies-base64 * update ethereum-blockies-base64; remove redundent declaration file
This commit is contained in:
parent
825e467db7
commit
8c0dd3f455
|
@ -1,6 +1,6 @@
|
|||
import { toDataUrl } from 'ethereum-blockies';
|
||||
import { isValidETHAddress } from 'libs/validators';
|
||||
import React from 'react';
|
||||
import makeBlockie from 'ethereum-blockies-base64';
|
||||
|
||||
interface Props {
|
||||
address: string;
|
||||
|
@ -12,7 +12,7 @@ export default function Identicon(props: Props) {
|
|||
const size = props.size || '4rem';
|
||||
const { address, className } = props;
|
||||
// FIXME breaks on failed checksums
|
||||
const identiconDataUrl = isValidETHAddress(address) ? toDataUrl(address) : '';
|
||||
const identiconDataUrl = isValidETHAddress(address) ? makeBlockie(address) : '';
|
||||
return (
|
||||
// Use inline styles for printable wallets
|
||||
<div
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
declare module 'ethereum-blockies' {
|
||||
export function toDataUrl(address: string): string;
|
||||
}
|
|
@ -16,7 +16,7 @@
|
|||
"bootstrap-sass": "3.3.7",
|
||||
"classnames": "2.2.5",
|
||||
"electron-updater": "2.21.0",
|
||||
"ethereum-blockies": "git+https://github.com/MyCryptoHQ/blockies.git",
|
||||
"ethereum-blockies-base64": "1.0.1",
|
||||
"ethereumjs-abi": "0.6.5",
|
||||
"ethereumjs-tx": "1.3.4",
|
||||
"ethereumjs-util": "5.1.5",
|
||||
|
|
Loading…
Reference in New Issue