fix: resolve contact form placeholders, restore process block layout, and fix testimonials carousel scroll logic

This commit is contained in:
MichalC
2026-09-17 22:25:25 +02:00
parent 7cc68b9f36
commit ab4c5c83dd
91 changed files with 4790 additions and 319 deletions
+23
View File
@@ -0,0 +1,23 @@
import React from 'react'
import type { Page } from '../../payload-types'
import { ContactSectionClient } from './Client'
import { FormRenderer } from '../../components/FormRenderer'
type Props = Extract<NonNullable<Page['layout']>[0], { blockType: 'contactSection' }>
export const ContactSectionBlock: React.FC<Props> = (props) => {
const { form } = props
return (
<ContactSectionClient
{...props}
formNode={
typeof form === 'object' && form !== null ? (
<FormRenderer form={form} />
) : (
<p className="text-foreground/60">Formularz nie został podpięty.</p>
)
}
/>
)
}