Skip to content

Commit 303a81c

Browse files
committed
updated
1 parent 1560e56 commit 303a81c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/client/public/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
content="Web site created using create-react-app"
1111
/>
1212
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13-
<!--
14-
manifest.json provides metadata used when your web app is installed on a
15-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16-
-->
1713
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1814
<link
1915
href="https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css"

packages/client/src/components/posts/post.component.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ const PostItem: FC<PostItemProps> = ({ post }) => {
5757
};
5858
return (
5959
<>
60-
<div className='rounded-md shadow-md bg-white'>
60+
<div
61+
className='rounded-md shadow-md bg-white'
62+
onClick={() => toggleMenu()}
63+
>
6164
<div className='mx-2 mt-2 overflow-hidden rounded-md'>
6265
<img
6366
src={post.image}

packages/client/src/components/posts/update.post.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const UpdatePost: FC<IUpdatePostProps> = ({ post, setOpenPostModal }) => {
7272
}, []);
7373

7474
const onSubmitHandler: SubmitHandler<UpdatePostInput> = async (data) => {
75-
updatePost({ body: data, params: { postId: post.id } });
75+
updatePost({ body: data, params: { postId: post._id } });
7676
};
7777
return (
7878
<section>

0 commit comments

Comments
 (0)