diff --git a/src/components/PostDetails.tsx b/src/components/PostDetails.tsx index ebe2742ac..a79089e8b 100644 --- a/src/components/PostDetails.tsx +++ b/src/components/PostDetails.tsx @@ -14,7 +14,7 @@ type Props = { export const PostDetails: React.FC = ({ selectedPost, showForm, - setShowForm = () => {}, + setShowForm, }) => { const [comments, setComments] = useState([]); diff --git a/src/components/PostsList.tsx b/src/components/PostsList.tsx index 02d4f5f84..92c0ab2c0 100644 --- a/src/components/PostsList.tsx +++ b/src/components/PostsList.tsx @@ -13,7 +13,7 @@ export const PostsList: React.FC = ({ userPosts, selectedPost, setShowForm, - setSelectedPost = () => {}, + setSelectedPost, }) => { const openPostFunction = (postToSelect: Post) => { if (selectedPost && selectedPost.id === postToSelect.id) { diff --git a/src/components/UserSelector.tsx b/src/components/UserSelector.tsx index 20a45b9cd..f5143495a 100644 --- a/src/components/UserSelector.tsx +++ b/src/components/UserSelector.tsx @@ -14,7 +14,7 @@ export const UserSelector: React.FC = ({ users, selectedUser, setSelectedUser, - setSelectedPost = () => {}, + setSelectedPost, }) => { const [menuVisibility, setMenuVisibility] = useState(false);