Skip to content

Commit

Permalink
fix: change label for table row action button (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Feb 29, 2024
1 parent ef04c63 commit 34a2203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/TableRowReport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { memo } from "react";
import { Link } from "react-router-dom";
import { calcScore } from "@/lib/score";

const TableRowReport = ({ id, createdAt, deadline, evaluations, finished }) => {
const TableRowReport = ({ id, createdAt, deadline, evaluations, finished, actionLabel = "Vezi"}) => {
const evaluationsCompleted = evaluations
? evaluations.filter(({ dimensions }) => dimensions.length === 10)
: [];
Expand Down Expand Up @@ -38,7 +38,7 @@ const TableRowReport = ({ id, createdAt, deadline, evaluations, finished }) => {
{finished ? "Finalizat" : "In desfasurare"}
</td>
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6 text-teal-600">
<Link to={`/reports/${id}`}>Vezi</Link>
<Link to={`/reports/${id}`}>{actionLabel}</Link>
</td>
</tr>
);
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const Home = () => {
deadline={report.deadline}
evaluations={report.evaluations}
finished={report.finished}
actionLabel={"Vezi rezultatele"}
/>
);
})}
Expand Down

0 comments on commit 34a2203

Please sign in to comment.