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