Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aptmac committed Jan 24, 2025
1 parent e3b5c1c commit 01fc0e2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { GlobalQuickStartDrawer } from '@app/QuickStarts/QuickStartDrawer';
import { IAppRoute, navGroups, routes } from '@app/routes';
import { ThemeSetting, SettingTab } from '@app/Settings/types';
import { DARK_THEME_CLASS, selectTab, tabAsParam } from '@app/Settings/utils';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';
import { DynamicFeatureFlag, FeatureFlag } from '@app/Shared/Components/FeatureFlag';
import { NotificationCategory, Notification } from '@app/Shared/Services/api.types';
import { NotificationsContext } from '@app/Shared/Services/Notifications.service';
Expand Down Expand Up @@ -85,7 +86,6 @@ import { Link, matchPath, NavLink, useLocation, useNavigate } from 'react-router
import { map } from 'rxjs/operators';
import { LogoutIcon } from './LogoutIcon';
import { ThemeToggle } from './ThemeToggle';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';

export interface AppLayoutProps {
children?: React.ReactNode;
Expand Down
4 changes: 1 addition & 3 deletions src/app/BreadcrumbPage/BreadcrumbPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { toPath } from '@app/utils/utils';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';
import {
Breadcrumb,
BreadcrumbHeading,
Expand All @@ -24,10 +24,8 @@ import {
StackItem,
} from '@patternfly/react-core';
import * as React from 'react';
import { Link } from 'react-router-dom-v5-compat';
import { BreadcrumbTrail } from './types';
import { isItemFilled } from './utils';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';

interface BreadcrumbPageProps {
pageTitle: string;
Expand Down
3 changes: 0 additions & 3 deletions src/app/NotFound/NotFoundCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
*/

import { CryostatLink } from '@app/Shared/Components/CryostatLink';
import { toPath } from '@app/utils/utils';
import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';
import * as React from 'react';
import { Link } from 'react-router-dom-v5-compat';

export interface NotFoundCardProps {
title: React.ReactNode;
bodyText: React.ReactNode;
Expand Down
6 changes: 3 additions & 3 deletions src/app/Rules/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
*/
import { BreadcrumbPage } from '@app/BreadcrumbPage/BreadcrumbPage';
import { DeleteOrDisableWarningType } from '@app/Modal/types';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';
import { EmptyText } from '@app/Shared/Components/EmptyText';
import { LoadingView } from '@app/Shared/Components/LoadingView';
import { MatchExpressionDisplay } from '@app/Shared/Components/MatchExpression/MatchExpressionDisplay';
import { Rule, NotificationCategory } from '@app/Shared/Services/api.types';
import { ServiceContext } from '@app/Shared/Services/Services';
import { useSubscriptions } from '@app/utils/hooks/useSubscriptions';
import { TableColumn, formatBytes, formatDuration, sortResources, portalRoot, toPath } from '@app/utils/utils';
import { TableColumn, formatBytes, formatDuration, sortResources, portalRoot } from '@app/utils/utils';
import { useCryostatTranslation } from '@i18n/i18nextUtil';
import {
Button,
Expand Down Expand Up @@ -60,12 +61,11 @@ import {
import _ from 'lodash';
import * as React from 'react';
import { Trans } from 'react-i18next';
import { Link, useNavigate } from 'react-router-dom-v5-compat';
import { useNavigate } from 'react-router-dom-v5-compat';
import { first } from 'rxjs/operators';
import { RuleDeleteWarningModal } from './RuleDeleteWarningModal';
import { RuleUploadModal } from './RulesUploadModal';
import { RuleToDeleteOrDisable } from './types';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';

export interface RulesTableProps {}

Expand Down
6 changes: 3 additions & 3 deletions src/app/Topology/Actions/QuickSearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { CryostatLink } from '@app/Shared/Components/CryostatLink';
import { NotificationsContext } from '@app/Shared/Services/Notifications.service';
import { ServiceContext } from '@app/Shared/Services/Services';
import { useFeatureLevel } from '@app/utils/hooks/useFeatureLevel';
import { portalRoot, toPath } from '@app/utils/utils';
import { portalRoot } from '@app/utils/utils';
import {
Bullseye,
Button,
Expand Down Expand Up @@ -48,11 +49,10 @@ import { css } from '@patternfly/react-styles';
import { useHover } from '@patternfly/react-topology';
import _ from 'lodash';
import * as React from 'react';
import { Link, useNavigate } from 'react-router-dom-v5-compat';
import { useNavigate } from 'react-router-dom-v5-compat';
import QuickSearchIcon from '../../Shared/Components/QuickSearchIcon';
import quickSearches, { QuickSearchId, quickSearchIds } from './quicksearches/all-quick-searches';
import { QuickSearchItem } from './types';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';

export const QuickSearchTabContent: React.FC<{ item?: QuickSearchItem }> = ({ item, ...props }) => {
const navigate = useNavigate();
Expand Down
4 changes: 1 addition & 3 deletions src/app/Topology/Shared/Components/TopologyEmptyState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { CryostatLink } from '@app/Shared/Components/CryostatLink';
import { topologyDeleteAllFiltersIntent } from '@app/Shared/Redux/ReduxStore';
import { getAllLeaves } from '@app/Shared/Services/api.utils';
import { SearchExprServiceContext } from '@app/Shared/Services/service.utils';
import { toPath } from '@app/utils/utils';
import {
Bullseye,
Button,
Expand All @@ -31,9 +31,7 @@ import {
import { TopologyIcon } from '@patternfly/react-icons';
import * as React from 'react';
import { useDispatch } from 'react-redux';
import { Link } from 'react-router-dom-v5-compat';
import { DiscoveryTreeContext } from '../utils';
import { CryostatLink } from '@app/Shared/Components/CryostatLink';

export interface TopologyEmptyStateProps {}

Expand Down

0 comments on commit 01fc0e2

Please sign in to comment.