MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / updateProject

Function updateProject

client/src/component/MyProject.jsx:54–58  ·  view source on GitHub ↗
(currentProject)

Source from the content-addressed store, hash-verified

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

Callers 2

MyProfileCardFunction · 0.85
TestModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected