Skip to content

Commit

Permalink
Add lead text on CategoryTypeListBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
terotik committed Nov 27, 2024
1 parent e7efc05 commit 7c9dac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/paths/contentblocks/CategoryTypeListBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ interface ImpactData {
}

const CategoryTypeListBlock = (props: CategoryTypeListBlockProps) => {
const { id = '', heading, groupByLevelId, categories } = props;
const { id = '', heading, groupByLevelId, categories, lead } = props;

const paths = usePaths();
const t = useTranslations();
Expand Down Expand Up @@ -196,6 +196,7 @@ const CategoryTypeListBlock = (props: CategoryTypeListBlockProps) => {
<Row>
<Col className="mb-4">
{heading && <StyledTitle>{heading}</StyledTitle>}
{lead && <p>{lead}</p>}
</Col>
</Row>
</Container>
Expand Down

0 comments on commit 7c9dac9

Please sign in to comment.