mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
fixes linting and spelling errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState, useEffect, useCallback } from 'react';
|
import React, { useEffect, useCallback } from 'react';
|
||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { withI18n } from '@lingui/react';
|
import { withI18n } from '@lingui/react';
|
||||||
import { Card, CardActions, PageSection } from '@patternfly/react-core';
|
import { Card, CardActions, PageSection } from '@patternfly/react-core';
|
||||||
@@ -36,7 +36,7 @@ function Template({ i18n, me, setBreadcrumb }) {
|
|||||||
result: { isNotifAdmin, template },
|
result: { isNotifAdmin, template },
|
||||||
isLoading: hasRolesandTemplateLoading,
|
isLoading: hasRolesandTemplateLoading,
|
||||||
error: rolesAndTemplateError,
|
error: rolesAndTemplateError,
|
||||||
request: loadTempplateAndRoles,
|
request: loadTemplateAndRoles,
|
||||||
} = useRequest(
|
} = useRequest(
|
||||||
useCallback(async () => {
|
useCallback(async () => {
|
||||||
const [{ data }, notifAdminRes] = await Promise.all([
|
const [{ data }, notifAdminRes] = await Promise.all([
|
||||||
@@ -56,8 +56,8 @@ function Template({ i18n, me, setBreadcrumb }) {
|
|||||||
{ isNotifAdmin: false, template: null }
|
{ isNotifAdmin: false, template: null }
|
||||||
);
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadTempplateAndRoles();
|
loadTemplateAndRoles();
|
||||||
}, [loadTempplateAndRoles]);
|
}, [loadTemplateAndRoles]);
|
||||||
|
|
||||||
const loadScheduleOptions = () => {
|
const loadScheduleOptions = () => {
|
||||||
return JobTemplatesAPI.readScheduleOptions(templateId);
|
return JobTemplatesAPI.readScheduleOptions(templateId);
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import React from 'react';
|
|||||||
import { createMemoryHistory } from 'history';
|
import { createMemoryHistory } from 'history';
|
||||||
import { JobTemplatesAPI, OrganizationsAPI } from '@api';
|
import { JobTemplatesAPI, OrganizationsAPI } from '@api';
|
||||||
import { act } from 'react-dom/test-utils';
|
import { act } from 'react-dom/test-utils';
|
||||||
import { sleep } from '@testUtils/testUtils';
|
|
||||||
|
|
||||||
import { mountWithContexts, waitForElement } from '@testUtils/enzymeHelpers';
|
import { mountWithContexts, waitForElement } from '@testUtils/enzymeHelpers';
|
||||||
import Template from './Template';
|
import Template from './Template';
|
||||||
|
|||||||
Reference in New Issue
Block a user