update lang
This commit is contained in:
1 parent
84a9b5c603
commit
f0f714e8e2
8 files changed
+357
-25
No files matched your search
@@ -12,6 +12,9 @@ import DynamicHeroArticle from './DynamicHeroArticle';
|
||||
import DynamicScentNotesBreakdown from './DynamicScentNotesBreakdown';
|
||||
import DynamicQuoteCallout from './DynamicQuoteCallout';
|
||||
import DynamicProductCarousel from './DynamicProductCarousel';
|
||||
import AccordionSection from './sections/AccordionSection';
|
||||
import ContactInfoSection from './sections/ContactInfoSection';
|
||||
import ContactFormSection from './sections/ContactFormSection';
|
||||
|
||||
interface DynamicPageRendererProps {
|
||||
sections: PageSection[];
|
||||
@@ -63,6 +66,12 @@ export default function DynamicPageRenderer({
|
||||
return <DynamicQuoteCallout key={section.id} payload={section.payload} />;
|
||||
case 'PRODUCT_CAROUSEL':
|
||||
return <DynamicProductCarousel key={section.id} payload={section.payload} />;
|
||||
case 'ACCORDION':
|
||||
return <AccordionSection key={section.id} payload={section.payload as any} />;
|
||||
case 'CONTACT_INFO':
|
||||
return <ContactInfoSection key={section.id} payload={section.payload as any} />;
|
||||
case 'CONTACT_FORM':
|
||||
return <ContactFormSection key={section.id} payload={section.payload as any} />;
|
||||
default:
|
||||
console.warn(`[DynamicPageRenderer] Unknown block type: ${section.type}`);
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user