mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix lint errors
This commit is contained in:
@@ -23,7 +23,6 @@ async function logout() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class ContentError extends React.Component {
|
class ContentError extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { error, children, i18n } = this.props;
|
const { error, children, i18n } = this.props;
|
||||||
if (error && error.response && error.response.status === 401) {
|
if (error && error.response && error.response.status === 401) {
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ class JobTypeRedirect extends Component {
|
|||||||
<Card className="awx-c-card">
|
<Card className="awx-c-card">
|
||||||
{error === NOT_FOUND ? (
|
{error === NOT_FOUND ? (
|
||||||
<NotFoundError>
|
<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>
|
</NotFoundError>
|
||||||
) : (
|
) : (
|
||||||
<ContentError error={error} />
|
<ContentError error={error} />
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import React, { Component, Fragment } from 'react';
|
import React, { Component, Fragment } from 'react';
|
||||||
import { withI18n } from '@lingui/react';
|
import { withI18n } from '@lingui/react';
|
||||||
import { t } from '@lingui/macro';
|
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 { Config } from '@contexts/Config';
|
||||||
import Breadcrumbs from '@components/Breadcrumbs/Breadcrumbs';
|
import Breadcrumbs from '@components/Breadcrumbs/Breadcrumbs';
|
||||||
import { NotFoundError } from '@components/ContentError';
|
|
||||||
import { TemplateList } from './TemplateList';
|
import { TemplateList } from './TemplateList';
|
||||||
import Template from './Template';
|
import Template from './Template';
|
||||||
import JobTemplateAdd from './JobTemplateAdd';
|
import JobTemplateAdd from './JobTemplateAdd';
|
||||||
|
|||||||
Reference in New Issue
Block a user