load images

master
lza_menace 2 years ago
parent f177fdb091
commit 1ec140277e

@ -342,11 +342,14 @@ export function Hero(props) {
<> <>
<h1>Your Unaboomers</h1> <h1>Your Unaboomers</h1>
<div className="ownedTokens"> <div className="ownedTokens">
{JSON.parse(tokensMinted).map((id, idx) => ( {JSON.parse(tokensMinted).filter((item, index) => JSON.parse(tokensMinted).indexOf(item) === index).map((id, idx) => (
<div className="ownedToken" key={idx}> <div className="ownedToken" key={idx}>
<img src={Unaboomer} width="80px" /> <a href={'http://unaboomer-images.s3-website-us-west-2.amazonaws.com/' + String(id).padStart(5, '0') + '.png'} target='_blank'>
<img src={'http://unaboomer-images.s3-website-us-west-2.amazonaws.com/' + String(id).padStart(5, '0') + '.png'} width="80px" />
</a>
</div> </div>
))} )
)}
</div> </div>
</> </>
)} )}

Loading…
Cancel
Save