add missing cancel button (#475)

fixing: #459
This commit is contained in:
Erik Jan de Wit 2021-03-31 08:58:55 +02:00 committed by GitHub
parent 3e02fd1aa6
commit 33a29d4735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ import React from "react";
import {
AlertVariant,
Button,
ButtonVariant,
Form,
FormGroup,
Modal,
@ -73,6 +74,16 @@ export const GroupsModal = ({
>
{t(rename ? "rename" : "create")}
</Button>,
<Button
id="modal-cancel"
key="cancel"
variant={ButtonVariant.secondary}
onClick={() => {
handleModalToggle();
}}
>
{t("common:cancel")}
</Button>,
]}
>
<Form id="group-form" isHorizontal onSubmit={handleSubmit(submitForm)}>