Skip to content

Commit

Permalink
docs(PPDSC-2149): Updated structured-list page link (#195)
Browse files Browse the repository at this point in the history
docs(PPDSC-2149): Updated structured-list page link.
  • Loading branch information
Srinivasan-Ramasamy authored May 12, 2022
1 parent a339451 commit 87b34d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 1 addition & 2 deletions site/pages/components/structured-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const StructuredListComponent = (layoutProps: LayoutProps) => (
}}
layoutProps={layoutProps}
pageIntroduction={{
type: 'Component',
type: 'Layout',
name: 'Structured List',
hero: {
src: 'static/button-hero.svg',
Expand Down Expand Up @@ -154,7 +154,6 @@ const StructuredListComponent = (layoutProps: LayoutProps) => (
optional: undefined,
},
],
media: {},
}}
states={{
introduction:
Expand Down
8 changes: 8 additions & 0 deletions site/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,14 @@ export default [
'A low-level foundational component used to layout items in a horizontal or vertical stack.',
illustration: 'components/stack-illustration',
},
{
title: 'Structured List',
page: true,
id: '/components/structured-list',
description:
'Structured lists group content that is similar or related.',
illustration: 'components/standfirst-illustration',
},
{
title: 'Visibility',
page: true,
Expand Down
4 changes: 3 additions & 1 deletion site/templates/template-sections/anatomy-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export const AnatomySection: React.FC<AnatomySectionProps> = ({
id="anatomy"
introduction={introduction}
>
<ComponentPageCell>{renderAnatomy(media, rows)}</ComponentPageCell>
<ComponentPageCell>
{media && renderAnatomy(media, rows)}
</ComponentPageCell>
</CommonSection>
</>
)}
Expand Down

0 comments on commit 87b34d6

Please sign in to comment.