Skip to content

Commit a7f1d51

Browse files
committed
Fixed old post table name.
1 parent 7d79808 commit a7f1d51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/components/jobs/PostsTable.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
import React from 'react'
44
import Link from 'next/link'
5-
import { Post } from '@prisma/client'
5+
import { RedditPost } from '@prisma/client'
66
import 'animate.css'
77
import SubscribeButton from './SubscribeButton'
88

99
type Props = {
10-
posts: Post[]
10+
posts: RedditPost[]
1111
totalPosts: number
1212
postsPerPage: number
1313
currentPage: number
@@ -29,7 +29,7 @@ const PostsTable: React.FC<Props> = ({ posts, totalPosts, postsPerPage, currentP
2929
</tr>
3030
</thead>
3131
<tbody>
32-
{posts.map((post: Post) => {
32+
{posts.map((post: RedditPost) => {
3333
if (!post) return null // Skip undefined or null posts
3434
return (
3535
<tr

0 commit comments

Comments
 (0)