Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
e2e(options): fix i18n change
Elian Doran24167c06918b
diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsxindex f29468167b..0db0b62655 100644--- a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx+++ b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx@@ -17,7 +17,7 @@ interface OptionsRowProps {export default function OptionsRow({ name, label, description, children, centered, stacked }: OptionsRowProps) {const id = useUniqueName(name);- const childWithId = cloneElement(children, { id, name });+ const childWithId = cloneElement(children, { id, name: (children.props as { name?: string }).name ?? name });const className = `option-row ${centered ? "centered" : ""} ${stacked ? "stacked" : ""}`;@@ -92,9 +92,10 @@ export function OptionsRowWithButton({ label, description, icon, onClick }: Optitype="button"className="option-row option-row-link"onClick={onClick}+ aria-label={label}><div className="option-row-label">- <label style={{ cursor: "pointer" }}>{label}</label>+ <span style={{ cursor: "pointer" }}>{label}</span>{description && <small className="option-row-description">{description}</small>}</div>{icon && (