From ce19d84247d78ec3eaf1198f489bf152e8e95afc Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 20 Aug 2025 19:10:41 +0300 Subject: [PATCH] test(e2e): i18n test broken due to button --- apps/client/src/widgets/react/Button.tsx | 4 +++- apps/client/src/widgets/type_widgets/options/i18n.tsx | 1 + apps/server-e2e/src/i18n.spec.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/react/Button.tsx b/apps/client/src/widgets/react/Button.tsx index a0ea6da3b..61d7fbd83 100644 --- a/apps/client/src/widgets/react/Button.tsx +++ b/apps/client/src/widgets/react/Button.tsx @@ -4,6 +4,7 @@ import { useRef, useMemo } from "preact/hooks"; import { memo } from "preact/compat"; interface ButtonProps { + name?: string; /** Reference to the button element. Mostly useful for requesting focus. */ buttonRef?: RefObject; text: string; @@ -18,7 +19,7 @@ interface ButtonProps { style?: CSSProperties; } -const Button = memo(({ buttonRef: _buttonRef, className, text, onClick, keyboardShortcut, icon, primary, disabled, size, style }: ButtonProps) => { +const Button = memo(({ name, buttonRef: _buttonRef, className, text, onClick, keyboardShortcut, icon, primary, disabled, size, style }: ButtonProps) => { // Memoize classes array to prevent recreation const classes = useMemo(() => { const classList: string[] = ["btn"]; @@ -54,6 +55,7 @@ const Button = memo(({ buttonRef: _buttonRef, className, text, onClick, keyboard return (