mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Quick fix for ENS avatars
This commit is contained in:
parent
5e44addef9
commit
5f0beca38c
@ -59,10 +59,11 @@ const Address = (obj) => {
|
|||||||
let thisIcon;
|
let thisIcon;
|
||||||
if (thisInfo) {
|
if (thisInfo) {
|
||||||
thisName = thisInfo.domain;
|
thisName = thisInfo.domain;
|
||||||
|
console.log(thisInfo.avatar);
|
||||||
if (thisInfo.avatar) {
|
if (thisInfo.avatar) {
|
||||||
thisIcon =
|
thisIcon =
|
||||||
<a className="selectOrchLight" style={{ padding: '0.2em', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
|
<a className="selectOrchLight" style={{ padding: '0.2em', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
|
||||||
<img alt="" src={thisInfo.avatar} width="20em" height="20em" />
|
<img alt="" src={thisInfo.avatar.url} width="20em" height="20em" />
|
||||||
</a >
|
</a >
|
||||||
} else {
|
} else {
|
||||||
thisIcon =
|
thisIcon =
|
||||||
|
@ -66,7 +66,7 @@ const EventButtonAddress = (obj) => {
|
|||||||
if (thisInfo.avatar) {
|
if (thisInfo.avatar) {
|
||||||
thisIcon =
|
thisIcon =
|
||||||
<a className="selectOrch" style={{ padding: '0.2em', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
|
<a className="selectOrch" style={{ padding: '0.2em', cursor: 'alias' }} target="_blank" rel="noopener noreferrer" href={"https://app.ens.domains/name/" + thisInfo.domain + "/details"} >
|
||||||
<img alt="" src={thisInfo.avatar} width="20em" height="20em" style={{ margin: 0 }} />
|
<img alt="" src={thisInfo.avatar.url} width="20em" height="20em" style={{ margin: 0 }} />
|
||||||
</a >
|
</a >
|
||||||
} else {
|
} else {
|
||||||
thisIcon =
|
thisIcon =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user