mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Added support for reusable section
This commit is contained in:
@@ -8,6 +8,7 @@ const USPSection = dynamic(() => import('components/modules/usp-section'));
|
||||
const Slider = dynamic(() => import('components/modules/slider'));
|
||||
const BlurbSection = dynamic(() => import('components/modules/blurb-section'));
|
||||
const FilteredProductList = dynamic(() => import('components/modules/filtered-product-list'));
|
||||
const ReusableSection = dynamic(() => import('components/modules/reusable-section'));
|
||||
interface getContentComponentProps {
|
||||
_type: string;
|
||||
_key: number;
|
||||
@@ -40,6 +41,13 @@ const getContentComponent = ({ _type, _key, disabled, ...rest }: getContentCompo
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 'reusableSection':
|
||||
if (disabled !== true) {
|
||||
Component = ReusableSection;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return (
|
||||
<div
|
||||
|
Reference in New Issue
Block a user