diff --git a/components/PrimaryNavigation.jsx b/components/PrimaryNavigation.jsx index 882e61f..51981ba 100644 --- a/components/PrimaryNavigation.jsx +++ b/components/PrimaryNavigation.jsx @@ -39,7 +39,7 @@ export function PrimaryNavigation({ navigation }) { {navigation.map((item) => { if (item.links.length == 0) { return ( - + {item?.label} -
    +
      {item.links.map((sublink) => { if (sublink.menuItemMeta?.isFeatured) { return ( @@ -80,14 +80,16 @@ export function PrimaryNavigation({ navigation }) { ) } else { return ( - - {sublink.menuItemMeta?.description} - + + + {sublink.menuItemMeta?.description} + + ) } })} diff --git a/pages/_app.js b/pages/_app.js index 4418724..019cca0 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -14,7 +14,6 @@ import blocks from '@/wp-blocks' export default function MyApp({ Component, pageProps, router }) { return ( +

      Below you will find information about how various ACF field settings can impact how the field will map to the GraphQL Schema and/or modify resolution of the field when queried.

      {fieldTypeSettings?.nodes?.map((item, index) => { const { id, name, description, fieldTypeSettingsMeta } = item; - const { impactOnWpgraphql } = fieldTypeSettingsMeta; + const { impactOnWpgraphql, acfFieldName } = fieldTypeSettingsMeta; return ( - {description &&

      {description}

      } + {acfFieldName && <>

      {acfFieldName}

      } + {description && <>

      {description}

      } {impactOnWpgraphql && ( - + <>Impact on the GraphQL )} } diff --git a/wp-blocks/index.js b/wp-blocks/index.js index 521eabc..9636478 100644 --- a/wp-blocks/index.js +++ b/wp-blocks/index.js @@ -3,8 +3,8 @@ import { CoreBlocks } from '@faustwp/blocks' import { AcfFieldTypeConfigurationBlock } from './AcfFieldTypeConfigurationBlock' import { AcfFieldTypeSettingsBlock } from './AcfFieldTypeSettingsBlock' import { AcfGraphqlQuery } from './AcfGraphqlQuery' -import { CoreHeading } from './CoreHeading' import { CoreCode } from './CoreCode' +import { CoreHeading } from './CoreHeading' const blocks = { ...CoreBlocks,