diff --git a/components/layout/dynamic-content-manager/dynamic-content-manager.tsx b/components/layout/dynamic-content-manager/dynamic-content-manager.tsx index 814e9d4d6..f2bb5c5a8 100644 --- a/components/layout/dynamic-content-manager/dynamic-content-manager.tsx +++ b/components/layout/dynamic-content-manager/dynamic-content-manager.tsx @@ -5,8 +5,6 @@ import ReusableSection from '@/components/modules/reusable-section/reusable-sect import Slider from '@/components/modules/slider/slider'; import USPSection from '@/components/modules/usp-section/usp-section'; -import { InformationCircleIcon } from '@heroicons/react/24/outline'; -import { Suspense } from 'react'; interface getContentComponentProps { _type: string; _key: number; @@ -18,61 +16,25 @@ const getContentComponent = ({ _type, _key, disabled, ...rest }: getContentCompo switch (_type) { case 'hero': - if (disabled !== true) { - Component = Hero; - } else { - return; - } + Component = Hero; break; case 'slider': - if (disabled !== true) { - Component = Slider; - } else { - return; - } + Component = Slider; break; case 'filteredProductList': - if (disabled !== true) { - Component = FilteredProductList; - } else { - return; - } + Component = FilteredProductList; break; case 'blurbSection': - if (disabled !== true) { - Component = BlurbSection; - } else { - return; - } + Component = BlurbSection; break; case 'uspSection': - if (disabled !== true) { - Component = USPSection; - } else { - return; - } + Component = USPSection; break; case 'reusableSection': - if (disabled !== true) { - Component = ReusableSection; - } else { - return; - } + Component = ReusableSection; break; default: - return ( -