From 34a22037c4ecef36b4bbd688ca034facf5112da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Thu, 29 Feb 2024 13:37:07 +0000 Subject: [PATCH] fix: change label for table row action button (#106) --- client/src/components/TableRowReport/index.tsx | 4 ++-- client/src/pages/Home/index.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/TableRowReport/index.tsx b/client/src/components/TableRowReport/index.tsx index 609587a..751192c 100644 --- a/client/src/components/TableRowReport/index.tsx +++ b/client/src/components/TableRowReport/index.tsx @@ -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) : []; @@ -38,7 +38,7 @@ const TableRowReport = ({ id, createdAt, deadline, evaluations, finished }) => { {finished ? "Finalizat" : "In desfasurare"} - Vezi + {actionLabel} ); diff --git a/client/src/pages/Home/index.tsx b/client/src/pages/Home/index.tsx index 1626210..37b2b2c 100644 --- a/client/src/pages/Home/index.tsx +++ b/client/src/pages/Home/index.tsx @@ -66,6 +66,7 @@ const Home = () => { deadline={report.deadline} evaluations={report.evaluations} finished={report.finished} + actionLabel={"Vezi rezultatele"} /> ); })}