Skip to content

Commit

Permalink
feat(Typography): add key prop to React.Fragment in HeadingExamples
Browse files Browse the repository at this point in the history
  • Loading branch information
JoannaSikora committed Jan 29, 2025
1 parent 9eb1458 commit 17514a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export const HeadingExamples: React.FC = () => {
<>
<Heading size={size}>Heading {size.toUpperCase()}</Heading>
{['2xs', '3xs'].includes(size) && (
<>
<React.Fragment key={size}>
<Heading size={size} uppercase>
Heading {size.toUpperCase()} with uppercase
</Heading>
<Heading size={size} uppercase bold>
Heading {size.toUpperCase()} with uppercase and bold
</Heading>
</>
</React.Fragment>
)}
</>
);
Expand Down

0 comments on commit 17514a4

Please sign in to comment.