Merge pull request #634 from edewit/issue-632
fixed type of save button
This commit is contained in:
commit
b84d8bce5f
2 changed files with 5 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
.keycloak__form {
|
.keycloak__form {
|
||||||
max-width: 1024px;
|
max-width: 1024px;
|
||||||
|
margin-bottom: 52px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label.pf-c-form__label {
|
label.pf-c-form__label {
|
||||||
|
|
|
@ -9,14 +9,14 @@ type SaveResetProps = ActionGroupProps & {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SaveReset = ({ name, save, reset, ...rest }: SaveResetProps) => {
|
export const SaveReset = ({ name, save, reset, ...rest }: SaveResetProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation("common");
|
||||||
return (
|
return (
|
||||||
<ActionGroup {...rest}>
|
<ActionGroup {...rest}>
|
||||||
<Button data-testid={name + "Save"} variant="tertiary" onClick={save}>
|
<Button data-testid={name + "Save"} onClick={save}>
|
||||||
{t("common:save")}
|
{t("save")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button data-testid={name + "Revert"} variant="link" onClick={reset}>
|
<Button data-testid={name + "Revert"} variant="link" onClick={reset}>
|
||||||
{t("common:revert")}
|
{t("revert")}
|
||||||
</Button>
|
</Button>
|
||||||
</ActionGroup>
|
</ActionGroup>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue