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