(currentProject)
| 52 | |
| 53 | const [project, setproject] = useState({ id: "", etitle: "", edescription: "", egitHubLink: "", eyouTubeLink: "" }); |
| 54 | const updateProject = (currentProject) => { |
| 55 | refEdit.current.click(); |
| 56 | // Set the title, description and link to edit modal |
| 57 | setproject({ id: currentProject._id, etitle: currentProject.title, edescription: currentProject.description, egitHubLink: currentProject.gitHubLink, eyouTubeLink: currentProject.youTubeLink }) |
| 58 | } |
| 59 | |
| 60 | const handleClick = () => { |
| 61 | // Modify YouTube link |
no outgoing calls
no test coverage detected