Test with dynamic imports

This commit is contained in:
Henrik Larsson 2023-08-28 15:09:13 +02:00
parent 16abab4d12
commit 4cfa5d4a51
2 changed files with 10 additions and 7 deletions

View File

@ -1,10 +1,12 @@
import BlurbSection from '@/components/modules/blurb-section/blurb-section';
import FilteredProductList from '@/components/modules/filtered-product-list/filtered-product-list';
import Hero from '@/components/modules/hero';
import ReusableSection from '@/components/modules/reusable-section/reusable-section';
import Slider from '@/components/modules/slider/slider';
import USPSection from '@/components/modules/usp-section/usp-section';
import dynamic from 'next/dynamic';
import { InformationCircleIcon } from '@heroicons/react/24/outline';
import Hero from 'components/modules/hero';
import ReusableSection from 'components/modules/reusable-section/reusable-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;

View File

@ -1,5 +1,6 @@
import DynamicContentManager from 'components/layout/dynamic-content-manager';
import dynamic from 'next/dynamic';
const DynamicContentManager = dynamic(() => import('components/layout/dynamic-content-manager'));
interface ReusableSectionProps {
section: {
existingSection: {