Skip to content

Commit

Permalink
Revert "[Upd 79] Records in record table are now links"
Browse files Browse the repository at this point in the history
This reverts commit a0c00fb.
  • Loading branch information
LaChope committed Apr 9, 2024
1 parent 93a1898 commit 20cdcb0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/record/RecordRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { RECORD_PHASE, ROLE } from "../../constants/DefaultConstants";
import { useI18n } from "../../hooks/useI18n";
import { IfGranted } from "react-authorization";
import PromiseTrackingMask from "../misc/PromiseTrackingMask";
import Routes from "../../constants/RoutesConstants.js";
import { Link } from "react-router-dom";

const StatusInfo = {};
StatusInfo[RECORD_PHASE.OPEN] = {
Expand Down Expand Up @@ -43,11 +41,15 @@ let RecordRow = (props) => {
<tr className="position-relative">
<IfGranted expected={ROLE.ADMIN} actual={props.currentUser.role}>
<td className="report-row">
<Link to={Routes.records.path + "/" + record.key}>{record.key}</Link>
<Button variant="link" size="sm" onClick={() => props.onEdit(record)}>
{record.key}
</Button>
</td>
</IfGranted>
<td className="report-row">
<Link to={Routes.records.path + "/" + record.key}>{record.localName}</Link>
<Button variant="link" size="sm" onClick={() => props.onEdit(record)}>
{record.localName}
</Button>
</td>
<IfGranted expected={ROLE.ADMIN} actual={props.currentUser.role}>
<td className="report-row">{record.institution.name}</td>
Expand Down

0 comments on commit 20cdcb0

Please sign in to comment.