Closed Dex491 closed 1 year ago
OK, I think this is quite clear, just to be super specific, this edit button will appear in the ProfilePage.js
? Whoever works on this, will they know where this file is? Will it already have been created? Where are they getting loggedInUser (from props right?)
I think you need to mark this issue as DEPENDENT on the issue where you create the basic profilepage.js so that whoever works on this only starts working on it after the page exists or the other issue has been completed / approved.
On click of edit button, what will happen? Are you going to LINK to another page? If so, what URL?
Dependant on issue #98
Creating Edit Link
In the profile view component the details are NOT editable, and there will be a button to take the user to the edit component
The edit button should only be viewable/usable for the teacher or the user that matches the id
When user clicks on the Edit button (which is a Link), we navigate to
profile/:id/edit
- we take this id directly from the current profile being viewed