Fix linting errors

This commit is contained in:
mabashian
2021-04-28 12:59:34 -04:00
parent cc5a73aeb9
commit 6f7d594d0f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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 => (