Skip to content

Commit

Permalink
fix(PostsList): add missing types
Browse files Browse the repository at this point in the history
issue #82
  • Loading branch information
sabertazimi committed Aug 4, 2021
1 parent 895a7ab commit cdbf056
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/PostsList/PostsList.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import React from 'react';
import { Link } from 'gatsby';
import { List } from 'antd';
import { PostType } from '@types';

const PostsList = ({ posts }) => (
interface Props {
posts: PostType[];
}

const PostsList = ({ posts }: Props): JSX.Element => (
<List
className="mt-6"
dataSource={posts}
Expand Down

0 comments on commit cdbf056

Please sign in to comment.