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 = () => { ...@@ -104,10 +104,14 @@ const Collection = () => {
<CollectionBannerLoading /> <CollectionBannerLoading />
) : ( ) : (
<Box <Box
as="img" as={collectionStats?.bannerImageUrl ? 'img' : 'div'}
height="full" height="full"
width="full" width="full"
src={`${collectionStats?.bannerImageUrl}?w=${window.innerWidth}`} src={
collectionStats?.bannerImageUrl
? `${collectionStats.bannerImageUrl}?w=${window.innerWidth}`
: undefined
}
className={isLoading ? styles.loadingBanner : styles.bannerImage} className={isLoading ? styles.loadingBanner : styles.bannerImage}
background="none" 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