style(services-list): remove redundant ArrowLink and related link fields
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import type { Page } from '../../payload-types'
|
import type { Page } from '../../payload-types'
|
||||||
import { ArrowLink } from '../../components/ArrowLink'
|
|
||||||
|
|
||||||
type Props = Extract<NonNullable<Page['layout']>[0], { blockType: 'servicesList' }>
|
type Props = Extract<NonNullable<Page['layout']>[0], { blockType: 'servicesList' }>
|
||||||
|
|
||||||
@@ -31,11 +30,6 @@ export const ServicesListBlock: React.FC<Props> = ({ title, services }) => {
|
|||||||
{service.description}
|
{service.description}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="md:w-1/12 flex justify-end shrink-0">
|
|
||||||
<ArrowLink href={service.linkUrl || '#'}>
|
|
||||||
<span className="md:hidden">{service.linkText}</span>
|
|
||||||
</ArrowLink>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ export const ServicesList: Block = {
|
|||||||
fields: [
|
fields: [
|
||||||
{ 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: 'linkUrl', type: 'text' },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user