Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Don't show header-image-content in Data catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Dec 9, 2021
1 parent e619b0f commit 3d2704f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/theme/Header/HeaderImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,17 @@ function HeaderImage(props) {
}
/>
<div className="header-image-overlay" />
<div className="header-image-content" />
{!hideHeaderContent && props.content && contentCount === 0 ? (
<div className="header-image-content">
<h1>{props.content.title}</h1>
<p>{props.content.description}</p>
</div>
) : (
<div className="header-image-content" />
{!hideHeaderContent && (
<React.Fragment>
{props.content && contentCount === 0 ? (
<div className="header-image-content">
<h1>{props.content.title}</h1>
<p>{props.content.description}</p>
</div>
) : (
<div className="header-image-content" />
)}
</React.Fragment>
)}
{hasMetadata && (
<div
Expand Down

0 comments on commit 3d2704f

Please sign in to comment.