File tree Expand file tree Collapse file tree
Payload/CollectionArchive Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { RichText } from '@/components/Payload/RichText'
44
55import type { Post } from '@/payload-types'
66
7- import { Card } from '@/components/Payload/PayloadCard'
7+ import { PayloadCard } from '@/components/Payload/PayloadCard'
88
99export type RelatedPostsProps = {
1010 className ?: string
@@ -23,7 +23,7 @@ export const RelatedPosts: React.FC<RelatedPostsProps> = (props) => {
2323 { docs ?. map ( ( doc , index ) => {
2424 if ( typeof doc === 'string' ) return null
2525
26- return < Card key = { index } doc = { doc } relationTo = "posts" showCategories />
26+ return < PayloadCard key = { index } doc = { doc } relationTo = "posts" showCategories />
2727 } ) }
2828 </ div >
2929 </ div >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React from 'react'
33
44import type { Post } from '@/payload-types'
55
6- import { Card } from '.. /PayloadCard'
6+ import { PayloadCard } from '@/components/Payload /PayloadCard'
77
88export type Props = {
99 posts : Post [ ]
@@ -20,7 +20,7 @@ export const CollectionArchive: React.FC<Props> = (props) => {
2020 if ( typeof result === 'object' && result !== null ) {
2121 return (
2222 < div className = "col-span-4" key = { index } >
23- < Card className = "h-full" doc = { result } relationTo = "posts" showCategories />
23+ < PayloadCard className = "h-full" doc = { result } relationTo = "posts" showCategories />
2424 </ div >
2525 )
2626 }
You can’t perform that action at this time.
0 commit comments