diff --git a/src/templates/ComponentReferenceTemplate.js b/src/templates/ComponentReferenceTemplate.js index 3dc787ffa..b1953a289 100644 --- a/src/templates/ComponentReferenceTemplate.js +++ b/src/templates/ComponentReferenceTemplate.js @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import { CodeBlock } from '@newrelic/gatsby-theme-newrelic'; import ReferenceExample from '../components/ReferenceExample'; -import PageTitle from '../components/PageTitle'; +import PageLayout from '../components/PageLayout'; import Markdown from '../components/Markdown'; import MethodReference from '../components/MethodReference'; import SEO from '../components/Seo'; @@ -55,65 +55,69 @@ const ComponentReferenceTemplate = ({ data }) => { return ( <> - {component} - - - + + + + + + - - Usage - {usage} - + + Usage + {usage} + - {examples.length > 0 && ( - - - Examples - {examples.map((example, i) => ( - - ))} - - - )} + {examples.length > 0 && ( + + + Examples + {examples.map((example, i) => ( + + ))} + + + )} - {component === 'Icon' && ( - - - - )} + {component === 'Icon' && ( + + + + )} - - Props - - + + Props + + - {methods.length > 0 && ( - - Methods - {methods.map((method, i) => ( - - ))} - - )} + {methods.length > 0 && ( + + Methods + {methods.map((method, i) => ( + + ))} + + )} - {typeDefs.length > 0 && ( - - Type definitions - {typeDefs.map((typeDef, i) => ( - - ))} - - )} + {typeDefs.length > 0 && ( + + Type definitions + {typeDefs.map((typeDef, i) => ( + + ))} + + )} + + > ); };