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>
|
</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>
|
||||||
|
|||||||
@@ -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' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user