pull/21833/head
Bruno Windels 2019-11-22 16:25:30 +01:00
parent 8cb362002b
commit 0dfb0f5468
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ import AccessibleButton from "./AccessibleButton";
export default function FormButton(props) { export default function FormButton(props) {
const {className, label, kind, ...restProps} = props; const {className, label, kind, ...restProps} = props;
const newClassName = (className || "") + " mx_FormButton"; const newClassName = (className || "") + " mx_FormButton";
const allProps = Object.assign({}, restProps, {className: newClassName, kind: kind || "primary", children: [label]}); const allProps = Object.assign({}, restProps,
{className: newClassName, kind: kind || "primary", children: [label]});
return React.createElement(AccessibleButton, allProps); return React.createElement(AccessibleButton, allProps);
} }