mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
Fix linting errors
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import React, { useCallback, useEffect, useState } from 'react';
|
||||||
import { useHistory, useParams } from 'react-router-dom';
|
import { useHistory, useParams } from 'react-router-dom';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { CardBody } from '../../../components/Card';
|
import { CardBody } from '../../../components/Card';
|
||||||
import {
|
import {
|
||||||
CredentialsAPI,
|
CredentialsAPI,
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ function NotificationTemplatesList({ i18n }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const canAdd = actions && actions.POST;
|
const canAdd = actions && actions.POST;
|
||||||
|
const alertGroupDataCy = 'notification-template-alerts';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -227,7 +228,7 @@ function NotificationTemplatesList({ i18n }) {
|
|||||||
{i18n._(t`Failed to delete one or more notification template.`)}
|
{i18n._(t`Failed to delete one or more notification template.`)}
|
||||||
<ErrorDetail error={deletionError} />
|
<ErrorDetail error={deletionError} />
|
||||||
</AlertModal>
|
</AlertModal>
|
||||||
<AlertGroup data-cy="notification-template-alerts" isToast>
|
<AlertGroup data-cy={alertGroupDataCy} isToast>
|
||||||
{testToasts
|
{testToasts
|
||||||
.filter(notification => notification.status !== 'pending')
|
.filter(notification => notification.status !== 'pending')
|
||||||
.map(notification => (
|
.map(notification => (
|
||||||
|
|||||||
Reference in New Issue
Block a user