Skip to content

Commit 5e9963f

Browse files
committed
fix: PayloadCard
1 parent bc194e6 commit 5e9963f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Blocks/RelatedPosts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { RichText } from '@/components/Payload/RichText'
44

55
import type { Post } from '@/payload-types'
66

7-
import { Card } from '@/components/Payload/PayloadCard'
7+
import { PayloadCard } from '@/components/Payload/PayloadCard'
88

99
export 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>

src/components/Payload/CollectionArchive/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33

44
import type { Post } from '@/payload-types'
55

6-
import { Card } from '../PayloadCard'
6+
import { PayloadCard } from '@/components/Payload/PayloadCard'
77

88
export 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
}

0 commit comments

Comments
 (0)