From 34a7d48b95ed87fce59cf0ab061e27f3575ac996 Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Fri, 3 Mar 2023 14:50:18 +0200 Subject: [PATCH] fix: provide HelpButton title prop (#6209) Co-authored-by: dwelle --- src/components/HelpButton.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/HelpButton.tsx b/src/components/HelpButton.tsx index 40c13027..ce387244 100644 --- a/src/components/HelpButton.tsx +++ b/src/components/HelpButton.tsx @@ -1,7 +1,7 @@ +import { t } from "../i18n"; import { HelpIcon } from "./icons"; type HelpButtonProps = { - title?: string; name?: string; id?: string; onClick?(): void; @@ -12,8 +12,8 @@ export const HelpButton = (props: HelpButtonProps) => ( className="help-icon" onClick={props.onClick} type="button" - title={`${props.title} — ?`} - aria-label={props.title} + title={`${t("helpDialog.title")} — ?`} + aria-label={t("helpDialog.title")} > {HelpIcon}