From de1070792273603f43de47f68e6ac8988e371c95 Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Tue, 9 Jan 2024 16:13:43 -0700 Subject: [PATCH 1/2] - update tailwind.config.js to use data-theme for dark mode (algolia DocSearch components rely on this) - change in _app.js to use default "data-theme" attribute instead of "attribute='class'" - update tailwind.css to use [data-theme='dark'] as the theme variant - update AcfFieldTypeSettingsBlock to add some more context to the content within the accordion --- pages/_app.js | 1 - styles/tailwind.css | 2 +- tailwind.config.js | 2 +- wp-blocks/AcfFieldTypeSettingsBlock.js | 10 ++++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/_app.js b/pages/_app.js index 1d65d7d..68245d6 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 )} } From 342135e65963d8c7336d591c0b81a48f2ec8a42a Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Tue, 9 Jan 2024 16:20:05 -0700 Subject: [PATCH 2/2] npm run lint:fix --- components/PrimaryNavigation.jsx | 6 +++--- wp-blocks/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/PrimaryNavigation.jsx b/components/PrimaryNavigation.jsx index fa2c82a..51981ba 100644 --- a/components/PrimaryNavigation.jsx +++ b/components/PrimaryNavigation.jsx @@ -36,10 +36,10 @@ export function PrimaryNavigation({ navigation }) { return ( - {navigation.map((item, i) => { + {navigation.map((item) => { if (item.links.length == 0) { return ( - + +