Nasty Pirate Macaw

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

    3.2.3 • Public • Published

    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';
    

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    6

    Version

    3.2.3

    License

    Apache-2.0

    Unpacked Size

    125 kB

    Total Files

    35

    Last publish

    Collaborators

    • lesamo
    • jozefhartinger
    • karelhala
    • ryelo
    • kruai
    • hyperkid