From ef5cd66494ef69d26ca9efe1c5b893462426034a Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Thu, 17 Feb 2022 13:58:16 -0800 Subject: [PATCH] Excise disable-lint rules. --- awx/ui/src/screens/TopologyView/Legend.js | 30 ++++++++++---------- awx/ui/src/screens/TopologyView/Tooltip.js | 26 +++++++++-------- awx/ui/src/screens/TopologyView/constants.js | 1 - 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/awx/ui/src/screens/TopologyView/Legend.js b/awx/ui/src/screens/TopologyView/Legend.js index 2d729e5737..5fe35beb51 100644 --- a/awx/ui/src/screens/TopologyView/Legend.js +++ b/awx/ui/src/screens/TopologyView/Legend.js @@ -1,5 +1,5 @@ -/* eslint-disable i18next/no-literal-string */ import React from 'react'; +import { t } from '@lingui/macro'; import styled from 'styled-components'; import { Button as PFButton, @@ -62,49 +62,49 @@ function Legend() { component={TextVariants.small} style={{ fontWeight: 'bold', color: 'black' }} > - Legend + {t`Legend`} - Node types + {t`Node types`} - Control node + {t`Control node`} - Execution node + {t`Execution node`} - Hybrid node + {t`Hybrid node`} - Hop node + {t`Hop node`} - Status types + {t`Status types`} @@ -115,13 +115,13 @@ function Legend() { style={{ border: '1px solid gray', backgroundColor: '#3E8635' }} /> - Healthy + {t`Healthy`} - {nodeDetail.hostname} + + {nodeDetail.hostname} + - Type + {t`Type`} - {nodeDetail.node_type} node + {nodeDetail.node_type} {t`node`} - Status + {t`Status`} diff --git a/awx/ui/src/screens/TopologyView/constants.js b/awx/ui/src/screens/TopologyView/constants.js index f4538dea63..dbecb633f8 100644 --- a/awx/ui/src/screens/TopologyView/constants.js +++ b/awx/ui/src/screens/TopologyView/constants.js @@ -1,4 +1,3 @@ -/* eslint-disable-next-line import/prefer-default-export */ export const SELECTOR = '#chart'; export const MESH_FORCE_LAYOUT = { defaultCollisionFactor: 80,