Skip to content

Commit

Permalink
fix(inv-compliance): use v3 dependencies import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Feb 4, 2021
1 parent 1be50e9 commit e1890ec
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/inventory-compliance/src/Compliance/Compliance.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ComplianceEmptyState from '../ComplianceEmptyState';
import { useQuery } from '@apollo/react-hooks';
import gql from 'graphql-tag';
import { ApolloClient, HttpLink, InMemoryCache } from 'apollo-boost';
import { Spinner } from '@redhat-cloud-services/frontend-components';
import { Spinner } from '@redhat-cloud-services/frontend-components/Spinner';
import './compliance.scss';
import { ErrorCard } from '../PresentationalComponents';
import { IntlProvider } from 'react-intl';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { CloudSecurityIcon } from '@patternfly/react-icons';
import gql from 'graphql-tag';
import { useQuery } from '@apollo/react-hooks';
import { Spinner } from '@redhat-cloud-services/frontend-components';
import { Spinner } from '@redhat-cloud-services/frontend-components/Spinner';
import { ErrorCard } from '../PresentationalComponents';
const COMPLIANCE_API_ROOT = '/api/compliance';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import propTypes from 'prop-types';
import { RemediationButton } from '@redhat-cloud-services/frontend-components-remediations';
import flatten from 'lodash/flatten';
import { connect } from 'react-redux';
import { addNotification } from '@redhat-cloud-services/frontend-components-notifications';
import { addNotification } from '@redhat-cloud-services/frontend-components-notifications/redux';
import { AnsibeTowerIcon } from '@patternfly/react-icons';

class ComplianceRemediationButton extends React.Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
EmptyStateVariant,
Title
} from '@patternfly/react-core';
import { EmptyTable } from '@redhat-cloud-services/frontend-components';
import { EmptyTable } from '@redhat-cloud-services/frontend-components/EmptyTable';

const EmptyRows = [{
cells: [{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import propTypes from 'prop-types';
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
import { RowLoader } from '@redhat-cloud-services/frontend-components-utilities/files/cjs/helpers';
import RowLoader from '@redhat-cloud-services/frontend-components-utilities/RowLoader';

const RuleLoadingTable = ({ columns }) => (
<Table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import propTypes from 'prop-types';
import { Pagination, PaginationVariant, ToolbarItem } from '@patternfly/react-core';
import { CheckCircleIcon, ExclamationCircleIcon, AnsibeTowerIcon } from '@patternfly/react-icons';
import { Table, TableHeader, TableBody, sortable, fitContent } from '@patternfly/react-table';
import { TableToolbar, PrimaryToolbar } from '@redhat-cloud-services/frontend-components';
import { PrimaryToolbar } from '@redhat-cloud-services/frontend-components/PrimaryToolbar';
import { TableToolbar } from '@redhat-cloud-services/frontend-components/TableToolbar';

import './compliance.scss';
import { RuleChildRow, RuleTitle, RuleLoadingTable, EmptyRows } from '../PresentationalComponents';
Expand Down
2 changes: 1 addition & 1 deletion packages/inventory-compliance/src/Utilities/ChipBuilder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components';
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components/ConditionalFilter';

class ChipBuilder {
constructor(filterConfig) {
Expand Down
6 changes: 4 additions & 2 deletions packages/inventory-compliance/src/Utilities/FilterBuilder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components';
import { stringToId } from './Helpers';
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components/ConditionalFilter';
import {
stringToId
} from './FilterConfigBuilder';

class FilterBuilder {
constructor(filterConfig) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components';
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components/ConditionalFilter';
import FilterConfigBuilder from './FilterConfigBuilder';
import FilterBuilder from './FilterBuilder';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HIGH_SEVERITY, MEDIUM_SEVERITY, LOW_SEVERITY, UNKNOWN_SEVERITY } from '../Constants';
import {
conditionalFilterType
} from '@redhat-cloud-services/frontend-components';
} from '@redhat-cloud-services/frontend-components/ConditionalFilter';

const filterRulesWithAllValues = (rules, values, valueCheck) => rules.filter((rule) => (
values.map((value) => valueCheck(rule, value)).filter(v => !!v).length > 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components';
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components/ConditionalFilter';
import FilterBuilder from './FilterBuilder';
import ChipBuilder from './ChipBuilder';
import { stringToId } from './Helpers';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import buildFilterConfig from './FilterBuilderConfigBuilder';
import FilterConfigBuilder from './FilterConfigBuilder';
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components';
import { conditionalFilterType } from '@redhat-cloud-services/frontend-components/ConditionalFilter';

describe('FilterConfigBuilder', () => {
const config = [
Expand Down

0 comments on commit e1890ec

Please sign in to comment.