Skip to content

Commit

Permalink
Merge pull request #1672 from HDRUK/preprod
Browse files Browse the repository at this point in the history
GAT-2639 - Release v5.0.1 Gateway Web
  • Loading branch information
ChandraChintakindi authored Jul 27, 2023
2 parents 989e976 + bee8430 commit 0aea3f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.0.0
v5.0.1
Original file line number Diff line number Diff line change
@@ -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 => {
Expand All @@ -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) ? (
<Button
data-testid='action-bar-edit'
variant='secondary'
href={`/${type}/edit/${props.data.id}`}
className='techDetailButton mr-2'>
Edit
</Button>
<Link to={`/${type}/edit/${props.data.id}`}>
<Button
data-testid='action-bar-edit'
variant='secondary'
className='techDetailButton mr-2'>
Edit
</Button>
</Link>
) : (
''
)}
Expand Down

0 comments on commit 0aea3f5

Please sign in to comment.