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 {
|
||||
max-width: 1024px;
|
||||
margin-bottom: 52px;
|
||||
}
|
||||
|
||||
label.pf-c-form__label {
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue