fixed type of save button

fixing: #632
This commit is contained in:
Erik Jan de Wit 2021-05-25 12:04:58 +02:00
parent 6ad6be8924
commit 188ac0757f
2 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,7 @@
.keycloak__form {
max-width: 1024px;
margin-bottom: 52px;
}
label.pf-c-form__label {

View file

@ -9,14 +9,14 @@ type SaveResetProps = ActionGroupProps & {
};
export const SaveReset = ({ name, save, reset, ...rest }: SaveResetProps) => {
const { t } = useTranslation();
const { t } = useTranslation("common");
return (
<ActionGroup {...rest}>
<Button data-testid={name + "Save"} variant="tertiary" onClick={save}>
{t("common:save")}
<Button data-testid={name + "Save"} onClick={save}>
{t("save")}
</Button>
<Button data-testid={name + "Revert"} variant="link" onClick={reset}>
{t("common:revert")}
{t("revert")}
</Button>
</ActionGroup>
);