mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
Add default color values
This commit is contained in:
parent
d3da73ddc5
commit
5329460d89
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user