Skip to content

Commit

Permalink
remove default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Shevchuchka committed Oct 27, 2024
1 parent d057951 commit 24a516a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/PostDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Props = {
export const PostDetails: React.FC<Props> = ({
selectedPost,
showForm,
setShowForm = () => {},
setShowForm,
}) => {
const [comments, setComments] = useState<Comment[]>([]);

Expand Down
2 changes: 1 addition & 1 deletion src/components/PostsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const PostsList: React.FC<Props> = ({
userPosts,
selectedPost,
setShowForm,
setSelectedPost = () => {},
setSelectedPost,
}) => {
const openPostFunction = (postToSelect: Post) => {
if (selectedPost && selectedPost.id === postToSelect.id) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const UserSelector: React.FC<Props> = ({
users,
selectedUser,
setSelectedUser,
setSelectedPost = () => {},
setSelectedPost,
}) => {
const [menuVisibility, setMenuVisibility] = useState(false);

Expand Down

0 comments on commit 24a516a

Please sign in to comment.