Added styles for usp section and started on reusable section

This commit is contained in:
Henrik Larsson
2023-05-15 16:36:57 +02:00
parent f9aa17c0ae
commit a740f19f8a
7 changed files with 78 additions and 50 deletions

View File

@@ -4,22 +4,18 @@ import { Info } from 'lucide-react';
import dynamic from 'next/dynamic';
import Hero from 'components/modules/hero';
const USPSection = dynamic(() => import('components/ui/usp-section'));
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'));
interface getContentComponentProps {
_type: string;
_key: number;
disabled: boolean;
}
const getContentComponent = ({ _type, _key, disabled, ...rest }: getContentComponentProps) => {
let Component: any;
console.log('type', _type)
switch (_type) {
case 'hero':
Component = Hero;