Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: provide HelpButton title prop (#6209)

Omar Brikaa34a7d48b95ed
diff --git a/src/components/HelpButton.tsx b/src/components/HelpButton.tsx
index 40c130271e..ce387244c1 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}
</button>