Ad: use card.width, card.height

This commit is contained in:
Alex Gleason 2022-08-01 18:02:23 -05:00
parent 21ac46bada
commit d5fd3af903
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -55,7 +55,13 @@ const Ad: React.FC<IAd> = ({ card, impression }) => {
{card.image && (
<a href={card.url} className='rounded-[10px] overflow-hidden' target='_blank'>
<img className='w-full' src={card.image} alt='' />
<img
className='w-full'
width={card.width}
height={card.height}
src={card.image}
alt=''
/>
</a>
)}
</Stack>