fix(services-list): add missing linkUrl field to services list block

This commit is contained in:
MichalC
2026-09-04 00:38:24 +02:00
parent d5abe8e519
commit f0c9dca8e1
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export const ServicesListBlock: React.FC<Props> = ({ title, services }) => {
</p> </p>
</div> </div>
<div className="md:w-1/12 flex justify-end shrink-0"> <div className="md:w-1/12 flex justify-end shrink-0">
<ArrowLink href="/uslugi"> <ArrowLink href={service.linkUrl || '#'}>
<span className="md:hidden">{service.linkText}</span> <span className="md:hidden">{service.linkText}</span>
</ArrowLink> </ArrowLink>
</div> </div>
+1
View File
@@ -14,6 +14,7 @@ export const ServicesList: Block = {
{ name: 'title', type: 'text', required: true }, { name: 'title', type: 'text', required: true },
{ name: 'description', type: 'textarea', required: true }, { name: 'description', type: 'textarea', required: true },
{ name: 'linkText', type: 'text', required: true }, { name: 'linkText', type: 'text', required: true },
{ name: 'linkUrl', type: 'text' },
], ],
}, },
], ],
+2
View File
@@ -361,6 +361,7 @@ export interface Page {
title: string; title: string;
description: string; description: string;
linkText: string; linkText: string;
linkUrl?: string | null;
id?: string | null; id?: string | null;
}[] }[]
| null; | null;
@@ -806,6 +807,7 @@ export interface PagesSelect<T extends boolean = true> {
title?: T; title?: T;
description?: T; description?: T;
linkText?: T; linkText?: T;
linkUrl?: T;
id?: T; id?: T;
}; };
id?: T; id?: T;