diff --git a/Chart.yaml b/Chart.yaml index d3845ad3c..4bccc27e8 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v5.0.0 +v5.0.1 diff --git a/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js b/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js index 5bf01edc0..e75730bf0 100644 --- a/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js +++ b/src/pages/commonComponents/resourcePageButtons/ResourcePageButtons.js @@ -1,6 +1,7 @@ import { useState, useEffect } from 'react'; import { Button } from 'hdruk-react-core'; import { useAuth } from 'context/AuthContext'; +import { Link } from 'react-router-dom'; import AddToCollection from '../addToCollection/AddToCollection'; const ResourcePageButtons = props => { @@ -23,13 +24,14 @@ const ResourcePageButtons = props => { ((props.data.authors && props.data.authors.includes(props.userState[0].id)) || (props.data.creator && props.data.creator[0].id === props.userState[0].id) || isRootAdmin) ? ( - + + + ) : ( '' )}