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

0 comments on commit d1ad986

Please sign in to comment.