1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 18:58:08 +00:00

Add default color values

This commit is contained in:
Vasek Mlejnsky 2018-09-20 09:12:19 +02:00
parent d3da73ddc5
commit 5329460d89

View File

@ -62,7 +62,11 @@ class PendingTransactions extends Component<Props> {
}
getTransactionIconColors(tx: any) {
let iconColors = { };
let iconColors = {
color: '',
background: '',
borderColor: '',
};
const bgColorFactory = new ColorHash({ lightness: 0.7 });
const textColorFactory = new ColorHash();
@ -92,7 +96,6 @@ class PendingTransactions extends Component<Props> {
borderColor: bgColorFactory.hex(tx.network),
};
}
return iconColors;
}