Merge pull request #634 from edewit/issue-632

fixed type of save button
This commit is contained in:
mfrances17 2021-05-27 09:45:56 -04:00 committed by GitHub
commit b84d8bce5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -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 {

View file

@ -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>
); );