🚀 DAY 1 OF LAUNCH WEEK: Reachability for Ruby Now in Beta.Learn more →
Socket
Book a DemoInstallSign in
Socket

@redhat-cloud-services/frontend-components-inventory-insights

Package Overview
Dependencies
Maintainers
8
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redhat-cloud-services/frontend-components-inventory-insights

Advisor recommendation detail page for RedHat Cloud Services project.

latest
Source
npmnpm
Version
3.2.3
Version published
Maintainers
8
Created
Source

RedHat Cloud Services frontend components - inventory insights

npm version

This package exports components to show rules detail page.

!!!This package is deprecated!!!

Do not use this package anymore, if you want to use advisor detail you can use federated modules provided by advisor team

import React from 'react';
import { useStore } from 'react-redux';
import AsyncComponent from '@redhat-cloud-services/frontend-components/AsyncComponent';

const AdvisorTab = () => {
    const store = useStore();
    return <AsyncComponent
        appName="advisor"
        module="./SystemDetail"
        store={store}
        customItnl
        intlProps={{
            locale: navigator.language
        }}
    />;
};

export default AdvisorTab;

Installation

With NPM

npm i -S @redhat-cloud-services/frontend-components-inventory-insights

With yarn

yarn add @redhat-cloud-services/frontend-components-inventory-insights

This package is dependent on @redhat-cloud-services/frontend-components-utilities, @redhat-cloud-services/frontend-components, @redhat-cloud-services/frontend-components-remediations and @redhat-cloud-services/frontend-components-notifications will automatically install them trough direct dependencies.

Migration v2 -> v3

Import paths

Its no longer required to directly reference cjs/esm version of the builds.

- import InventoryInsights from '@redhat-cloud-services/frontend-components-inventory-insights/esm'
+ import InventoryInsights from '@redhat-cloud-services/frontend-components-inventory-insights'

Styling

It is no longer required to import css separatelly. Styles are injected automatically when the component is used

- @import '@redhat-cloud-services/frontend-components/index.css';

FAQs

Package last updated on 16 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts