Commit 30fa88e3 authored by vignesh mohankumar's avatar vignesh mohankumar Committed by GitHub

fix: show transparent box on empty banner (#5131)

* fix: show transparent box on empty banner

* div
parent d951172a
......@@ -104,10 +104,14 @@ const Collection = () => {
<CollectionBannerLoading />
) : (
<Box
as="img"
as={collectionStats?.bannerImageUrl ? 'img' : 'div'}
height="full"
width="full"
src={`${collectionStats?.bannerImageUrl}?w=${window.innerWidth}`}
src={
collectionStats?.bannerImageUrl
? `${collectionStats.bannerImageUrl}?w=${window.innerWidth}`
: undefined
}
className={isLoading ? styles.loadingBanner : styles.bannerImage}
background="none"
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment