Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Commit faa789a

Browse files
committed
export connect function in PostForm and add PostForm propTypes
1 parent 5b2d4f6 commit faa789a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/PostForm.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@ class PostForm extends Component {
6262
}
6363
}
6464

65-
export default PostForm;
65+
PostForm.propTypes = {
66+
createPost: PropTypes.func.isRequired,
67+
};
68+
69+
export default connect(null, { createPost })(PostForm);

0 commit comments

Comments
 (0)