diff --git a/src/blocks/ServicesList/Component.tsx b/src/blocks/ServicesList/Component.tsx index 9d42df7..7f5a976 100644 --- a/src/blocks/ServicesList/Component.tsx +++ b/src/blocks/ServicesList/Component.tsx @@ -32,7 +32,7 @@ export const ServicesListBlock: React.FC = ({ title, services }) => {

- + {service.linkText}
diff --git a/src/blocks/ServicesList/config.ts b/src/blocks/ServicesList/config.ts index 7afa789..b536136 100644 --- a/src/blocks/ServicesList/config.ts +++ b/src/blocks/ServicesList/config.ts @@ -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' }, ], }, ], diff --git a/src/payload-types.ts b/src/payload-types.ts index 2a46f31..9491c86 100644 --- a/src/payload-types.ts +++ b/src/payload-types.ts @@ -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 { title?: T; description?: T; linkText?: T; + linkUrl?: T; id?: T; }; id?: T;