Skip to content

Commit

Permalink
Fix content hub loading image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbaz17 committed Sep 19, 2023
1 parent bc5696c commit d1ad986
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/content-hub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default function ContentHub({ content }: Props) {
return (
<div key={article.sys.id} className={styles.article}>
<Link to={`/content-hub/blog/${article.slug}`} className={styles.articleContent}>
<img src={article.coverImage.url} alt="Blog Banner" />
<img src={article.coverImage.url ? article.coverImage.url : `${baseUrl}images/docs-meta-cards/guides-card.png`} alt="Blog Banner" />
<div className={styles.contentContainer}>
<div className={styles.pillContainer}>
<div className={styles.pill}>BLOG</div>
Expand Down Expand Up @@ -504,7 +504,7 @@ export default function ContentHub({ content }: Props) {
{blogPostMap.map((post) => renderBlog(post))}
{blogPostMap.length === 0 && (
<div className={styles.noResults}>
<p>No Results</p>
<p>Loading...</p>
</div>
)}
</>
Expand All @@ -514,7 +514,7 @@ export default function ContentHub({ content }: Props) {
{sortedGuides.map((item) => renderArticle(item))}
{sortedGuides.length === 0 && (
<div className={styles.noResults}>
<p>No Results</p>
<p>Loading...</p>
</div>
)}
</>
Expand All @@ -524,7 +524,7 @@ export default function ContentHub({ content }: Props) {
{sortedReferenceMap.map((item) => renderArticle(item))}
{sortedReferenceMap.length === 0 && (
<div className={styles.noResults}>
<p>No Results</p>
<p>Loading...</p>
</div>
)}
</>
Expand Down

1 comment on commit d1ad986

@vercel
Copy link

@vercel vercel bot commented on d1ad986 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web3auth-docs – ./

w3a-docs.vercel.app
web3auth-docs-web3auth.vercel.app
web3auth-docs-git-master-web3auth.vercel.app

Please sign in to comment.