fix(services-list): add missing linkUrl field to services list block
This commit is contained in:
@@ -32,7 +32,7 @@ export const ServicesListBlock: React.FC<Props> = ({ title, services }) => {
|
||||
</p>
|
||||
</div>
|
||||
<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>
|
||||
</ArrowLink>
|
||||
</div>
|
||||
|
||||
@@ -14,6 +14,7 @@ export const ServicesList: Block = {
|
||||
{ name: 'title', type: 'text', required: true },
|
||||
{ name: 'description', type: 'textarea', required: true },
|
||||
{ name: 'linkText', type: 'text', required: true },
|
||||
{ name: 'linkUrl', type: 'text' },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -361,6 +361,7 @@ export interface Page {
|
||||
title: string;
|
||||
description: string;
|
||||
linkText: string;
|
||||
linkUrl?: string | null;
|
||||
id?: string | null;
|
||||
}[]
|
||||
| null;
|
||||
@@ -806,6 +807,7 @@ export interface PagesSelect<T extends boolean = true> {
|
||||
title?: T;
|
||||
description?: T;
|
||||
linkText?: T;
|
||||
linkUrl?: T;
|
||||
id?: T;
|
||||
};
|
||||
id?: T;
|
||||
|
||||
Reference in New Issue
Block a user