fix lint errors

This commit is contained in:
Keith Grant 2019-08-08 08:45:05 -07:00
parent fe8df27811
commit 47357aea28
3 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,6 @@ async function logout() {
}
class ContentError extends React.Component {
render() {
const { error, children, i18n } = this.props;
if (error && error.response && error.response.status === 401) {

View File

@ -56,7 +56,8 @@ class JobTypeRedirect extends Component {
<Card className="awx-c-card">
{error === NOT_FOUND ? (
<NotFoundError>
The requested job could not be found. <Link to="/jobs">View all Jobs.</Link>
The requested job could not be found.{' '}
<Link to="/jobs">View all Jobs.</Link>
</NotFoundError>
) : (
<ContentError error={error} />

View File

@ -1,11 +1,10 @@
import React, { Component, Fragment } from 'react';
import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro';
import { Route, withRouter, Switch, Link } from 'react-router-dom';
import { Route, withRouter, Switch } from 'react-router-dom';
import { Config } from '@contexts/Config';
import Breadcrumbs from '@components/Breadcrumbs/Breadcrumbs';
import { NotFoundError } from '@components/ContentError';
import { TemplateList } from './TemplateList';
import Template from './Template';
import JobTemplateAdd from './JobTemplateAdd';