Skip to content

Commit

Permalink
conditional render
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel committed Nov 19, 2024
1 parent 6ef6a11 commit c5a4841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cover-hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const CoverHero = React.forwardRef<HTMLDivElement, CoverHeroProps>(
</div>
)}
</Stack>
<div data-testid="slot">{extra}</div>
{extra && <div data-testid="slot">{extra}</div>}
</div>
);

Expand Down
2 changes: 1 addition & 1 deletion src/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const Header = ({
{(title || pretitle || description) && (
<Box paddingRight={16}>
<Stack space={8}>
<div data-testid="headline">{headline}</div>
{headline && <div data-testid="headline">{headline}</div>}
{renderPretitle()}
{title &&
(small ? (
Expand Down

0 comments on commit c5a4841

Please sign in to comment.