changed all cancel buttons to type "link"

fixing: #459
This commit is contained in:
Erik Jan de Wit 2021-04-15 12:52:34 +02:00
parent 9ec20852be
commit f75838cea7
8 changed files with 8 additions and 12 deletions

View file

@ -80,7 +80,7 @@ export const DuplicateFlowModal = ({
<Button <Button
id="modal-cancel" id="modal-cancel"
key="cancel" key="cancel"
variant={ButtonVariant.secondary} variant={ButtonVariant.link}
onClick={() => { onClick={() => {
toggleDialog(); toggleDialog();
}} }}

View file

@ -41,11 +41,7 @@ export const ChangeTypeDialog = ({
> >
{t("common:continue")} {t("common:continue")}
</Button>, </Button>,
<Button <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
key="cancel"
variant={ButtonVariant.secondary}
onClick={onClose}
>
{t("common:cancel")} {t("common:cancel")}
</Button>, </Button>,
]} ]}

View file

@ -93,7 +93,7 @@ export const AddMapperDialog = (props: AddMapperDialogProps) => {
<Button <Button
id="modal-cancel" id="modal-cancel"
key="cancel" key="cancel"
variant={ButtonVariant.secondary} variant={ButtonVariant.link}
onClick={() => { onClick={() => {
props.toggleDialog(); props.toggleDialog();
}} }}

View file

@ -71,7 +71,7 @@ export const AddHostDialog = ({
<Button <Button
id="add-node-cancel" id="add-node-cancel"
key="cancel" key="cancel"
variant={ButtonVariant.secondary} variant={ButtonVariant.link}
onClick={() => onClose()} onClick={() => onClose()}
> >
{t("common:cancel")} {t("common:cancel")}

View file

@ -79,7 +79,7 @@ export const AddScopeDialog = ({
<Button <Button
id="modal-cancel" id="modal-cancel"
key="cancel" key="cancel"
variant={ButtonVariant.secondary} variant={ButtonVariant.link}
onClick={() => { onClick={() => {
setRows([]); setRows([]);
toggleDialog(); toggleDialog();

View file

@ -77,7 +77,7 @@ export const GroupsModal = ({
<Button <Button
id="modal-cancel" id="modal-cancel"
key="cancel" key="cancel"
variant={ButtonVariant.secondary} variant={ButtonVariant.link}
onClick={() => { onClick={() => {
handleModalToggle(); handleModalToggle();
}} }}

View file

@ -82,7 +82,7 @@ export const MemberModal = ({ groupId, onClose }: MemberModalProps) => {
<Button <Button
data-testid="cancel" data-testid="cancel"
key="cancel" key="cancel"
variant="secondary" variant="link"
onClick={onClose} onClick={onClose}
> >
{t("common:cancel")} {t("common:cancel")}

View file

@ -92,7 +92,7 @@ export const MoveGroupDialog = ({
<Button <Button
data-testid="moveCancel" data-testid="moveCancel"
key="cancel" key="cancel"
variant="secondary" variant="link"
onClick={onClose} onClick={onClose}
> >
{t("common:cancel")} {t("common:cancel")}