fixes linting and spelling errors

This commit is contained in:
Alex Corey 2020-03-19 16:46:21 -04:00
parent 56919c5d32
commit a02b332b10
2 changed files with 4 additions and 5 deletions

View File

@ -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);

View File

@ -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';