Skip to content

Commit

Permalink
Merge pull request #1 from Q42/fix/component-page
Browse files Browse the repository at this point in the history
Fix component rendering of user guide pages
  • Loading branch information
RubenBimmel authored May 17, 2024
2 parents 67bdfaa + 29bd713 commit 92cda8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {MarkdownStyle} from '../styled/markdown'

export const Page: FunctionComponent<{page: UserGuidePage}> = ({page}) => {
if ('component' in page) {
return <>{page.component}</>
return <page.component />
}

return (
Expand Down

0 comments on commit 92cda8f

Please sign in to comment.