project_mern_memories icon indicating copy to clipboard operation
project_mern_memories copied to clipboard

Clicking on Edit icon navigates to the particular memory detailed post.

Open mwaikar opened this issue 3 years ago • 3 comments

After implementing the detailed post navigation in PART 4, whenever we click on the Edit icon, it navigates to the detailed post instead of populating the content in the form to edit/update.

This issue is also present in the application hosted in PART 4. https://mernmemoriesjmasterytest.netlify.app/posts

mwaikar avatar Jun 13 '21 19:06 mwaikar

hey bro can I ask you about an error I am facing in video part 2??

mesushant13 avatar Jun 21 '21 15:06 mesushant13

@adrianhajdin, I noticed this too when I was following your tutorial for part 4.

This behavior happens in the client/src/components/Posts/Post/Post.js

I moved the <MoreHorizIcon> snippet out of the <ButtonBase> component and into the next <CardActions> one. It works now. BTW, I'm learning how to do a pull request as I also want to propose a validation hook for the image upload.

Post - MoreHorizIcon.zip

alejandro-alcaide avatar Jun 25 '21 01:06 alejandro-alcaide

@alejandro-alcaide I was thinking maybe I can provide a "More Details" kind of link and show around 25-30 chars on the memory card. And when the user clicks on More details, they will be navigated to the detailed view of that memory.

mwaikar avatar Jul 03 '21 17:07 mwaikar