+
+
+
+ } key={`breadcrumb-${props.params.collection}`}>
+
+
+
+
} key={`header-${props.params.collection}`}>
+
+
+
+
}
+ key={`products-${props.params.collection}`}
+ >
+
-
-
-
Filters
-
} key={`filters-${props.params.collection}`}>
-
-
-
-
-
-
- } key={`breadcrumb-${props.params.collection}`}>
-
-
-
-
} key={`header-${props.params.collection}`}>
-
-
-
-
}
- key={`products-${props.params.collection}`}
- >
-
-
-
+ >
);
}
diff --git a/app/search/layout.tsx b/app/search/layout.tsx
index a3ebd12a5..f99d3a361 100644
--- a/app/search/layout.tsx
+++ b/app/search/layout.tsx
@@ -1,12 +1,15 @@
+import FAQ from 'components/faq';
import Footer from 'components/layout/footer';
import { Suspense } from 'react';
export default function SearchLayout({ children }: { children: React.ReactNode }) {
return (
<>
-
+
{children}
+
+
>
);
diff --git a/components/faq.tsx b/components/faq.tsx
index 56531e3bf..db77346f9 100644
--- a/components/faq.tsx
+++ b/components/faq.tsx
@@ -1,16 +1,13 @@
import { PhoneIcon } from '@heroicons/react/24/outline';
import { getMetaobject } from 'lib/shopify';
-import kebabCase from 'lodash.kebabcase';
import Image from 'next/image';
import { Suspense } from 'react';
import AccordionBlock from './page/accordion-block';
import Tag from './tag';
-const { SITE_NAME } = process.env;
-
-const FAQ = async () => {
+const FAQ = async ({ handle }: { handle: string }) => {
const faqs = await getMetaobject({
- handle: { handle: `${kebabCase(SITE_NAME)}-faqs`, type: 'accordion' }
+ handle: { handle, type: 'accordion' }
});
if (!faqs) return null;
diff --git a/components/home-page/about.tsx b/components/home-page/about.tsx
index ed2c5b78b..745af7d02 100644
--- a/components/home-page/about.tsx
+++ b/components/home-page/about.tsx
@@ -1,15 +1,13 @@
import DisplayTabs from 'components/display-tabs';
import RichTextDisplay from 'components/page/rich-text-display';
import { getMetaobject, getMetaobjectsByIds } from 'lib/shopify';
-import kebabCase from 'lodash.kebabcase';
import Image from 'next/image';
import Tag from '../tag';
import ButtonLink from './button-link';
-const { SITE_NAME } = process.env;
const About = async () => {
const aboutUs = await getMetaobject({
- handle: { type: 'about_us', handle: `${kebabCase(SITE_NAME)}-about` }
+ handle: { type: 'about_us', handle: 'about-us' }
});
if (!aboutUs) return null;
diff --git a/components/home-page/why-choose.tsx b/components/home-page/why-choose.tsx
index f5c191f16..f066eb721 100644
--- a/components/home-page/why-choose.tsx
+++ b/components/home-page/why-choose.tsx
@@ -1,14 +1,13 @@
import ImageDisplay from 'components/page/image-display';
import RichTextDisplay from 'components/page/rich-text-display';
import { getMetaobject, getMetaobjectsByIds } from 'lib/shopify';
-import kebabCase from 'lodash.kebabcase';
import { Suspense } from 'react';
import Tag from '../tag';
const { SITE_NAME } = process.env;
const WhyChoose = async () => {
const whyChooseContent = await getMetaobject({
- handle: { type: 'why_choose', handle: `${kebabCase(SITE_NAME)}-why-choose` }
+ handle: { type: 'why_choose', handle: 'why-choose' }
});
if (!whyChooseContent || !whyChooseContent.items) return null;