remove unecessary i18n wrappers; fix HostToggle tooltip

This commit is contained in:
Keith J. Grant 2021-04-29 16:21:56 -07:00
parent cbe2a78287
commit 25a4a112b3
5 changed files with 1 additions and 9 deletions

View File

@ -47,11 +47,7 @@ function HostToggle({
return (
<Fragment>
<Tooltip
content={tooltip}
position="top"
css="white-space: nowrap; --pf-c-table--cell--WhiteSpace: nowrap"
>
<Tooltip content={tooltip} position="top">
<Switch
className={className}
css="display: inline-flex;"

View File

@ -1,6 +1,5 @@
import React, { useCallback, useEffect, useState } from 'react';
import { useLocation } from 'react-router-dom';
import { t } from '@lingui/macro';
import { RolesAPI, TeamsAPI, UsersAPI } from '../../api';
import AddResourceRole from '../AddRole/AddResourceRole';

View File

@ -1,7 +1,6 @@
import 'styled-components/macro';
import React from 'react';
import { func } from 'prop-types';
import { t } from '@lingui/macro';
import { Chip } from '@patternfly/react-core';
import { Tr, Td } from '@patternfly/react-table';

View File

@ -1,6 +1,5 @@
import React, { useCallback, useEffect, useState } from 'react';
import { useParams, useLocation } from 'react-router-dom';
import { t } from '@lingui/macro';
import { Tooltip } from '@patternfly/react-core';
import { getQSConfig, parseQueryString } from '../../../util/qs';

View File

@ -1,6 +1,5 @@
import React, { useEffect, useState, useCallback } from 'react';
import { useParams, useLocation } from 'react-router-dom';
import { t } from '@lingui/macro';
import { getQSConfig, parseQueryString } from '../../../util/qs';
import { InventoriesAPI, HostsAPI } from '../../../api';