From 8155e67bb556176af8ea7228b22e3d3dd9303ff7 Mon Sep 17 00:00:00 2001 From: "Kacprzak, Izabella" <izabella.kacprzak19@imperial.ac.uk> Date: Mon, 21 Jun 2021 18:07:08 +0200 Subject: [PATCH] Deleted return to Dashboard from ProjectDetails [IK] --- frontend/src/ProjectDetails.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/src/ProjectDetails.js b/frontend/src/ProjectDetails.js index 2b47a85..ac977a1 100644 --- a/frontend/src/ProjectDetails.js +++ b/frontend/src/ProjectDetails.js @@ -15,15 +15,8 @@ const ProjectDetails = () => { .then(() => { history.push('/'); }) }; - const handleReturn = e => { - history.push('/'); - } - return ( <div className="project-details"> - <div className="ret-prev-page"> - <button onClick={handleReturn}>To Dashboard</button> - </div> <br /> { isPending && <h2>Loading...</h2> } { project && <h2>{project.name}</h2> } -- GitLab