From 4d03f685dc6add6f6a8677c83925120f1b39018a Mon Sep 17 00:00:00 2001 From: aviya-gidan Date: Wed, 30 Oct 2024 14:58:47 +0200 Subject: [PATCH] add tooltip Signed-off-by: aviya-gidan --- client/src/app/pages/tasks/useTaskActions.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/pages/tasks/useTaskActions.tsx b/client/src/app/pages/tasks/useTaskActions.tsx index 066b00798..c9e6c4e19 100644 --- a/client/src/app/pages/tasks/useTaskActions.tsx +++ b/client/src/app/pages/tasks/useTaskActions.tsx @@ -72,7 +72,7 @@ export const useTaskActions = (task: Task) => { isAriaDisabled: !canCancel(task.state), tooltipProps: { content: !canCancel(task.state) - ? `${t("message.cancelNotAvailable", { statusName: task.state })}` + ? t("message.cancelNotAvailable", { statusName: task.state }) : "", }, onClick: () => cancelTask(task.id), @@ -85,9 +85,9 @@ export const useTaskActions = (task: Task) => { onClick: () => togglePreemption(task), tooltipProps: { content: !canTogglePreemption(task.state) - ? `${t("message.togglePreemptionNotAvailable", { + ? t("message.togglePreemptionNotAvailable", { statusName: task.state, - })}` + }) : "", }, },