diff --git a/src/components/EndNotes/docProps.ts b/src/components/EndNotes/docProps.ts index 0efb4781..df1e7f08 100644 --- a/src/components/EndNotes/docProps.ts +++ b/src/components/EndNotes/docProps.ts @@ -3,10 +3,10 @@ interface EndNote { Text: String; } -type Block = EndNote[]; +type EndNotes = EndNote[]; -export const getEndNotesPropsFromDoc = (docBlock: Block) => { - return docBlock.map((d) => { +export const getEndNotesPropsFromDoc = (endNotes: EndNotes) => { + return endNotes.map((d) => { return { title: d.Title, text: d.Text, diff --git a/src/components/EndNotes/stories/docs/component.md b/src/components/EndNotes/stories/docs/component.md index af7054bc..be0eb489 100644 --- a/src/components/EndNotes/stories/docs/component.md +++ b/src/components/EndNotes/stories/docs/component.md @@ -1,10 +1,8 @@ -Note text includes notes to the main article — usually things like sources, clarifiying notes and minor corrections at the end of a story. - -Note text can be fed a markdown string, but text styling is intentionally restricted in this component. For example, all heading tags are forced to a single font size and weight. +End notes includes notes to the main article — usually things like sources, clarifiying notes and minor corrections at the end of a story. ```svelte - + ``` diff --git a/src/components/HeroHeadline/Hero.stories.svelte b/src/components/HeroHeadline/Hero.stories.svelte index bae2e2ab..d5555f76 100644 --- a/src/components/HeroHeadline/Hero.stories.svelte +++ b/src/components/HeroHeadline/Hero.stories.svelte @@ -67,7 +67,7 @@ />