@rhc-shared-components/packages-table
v3.0.1
Published
project description
Keywords
Readme
@rhc-shared-components/packages-table
The packages table component takes two props, a list of vulnerabilities and a list of RPMs. It will always render at least one filterable table with all the unique vulnerabilities (by CVE ID) under the "Vulnerabilities" tab. If any RPM has an invalid GPG key, it'll render a second filterable table under a second "Excluded packages" tab with a list of those packages.
Install
npm install --save @rhc-shared-components/packages-tableUsage
import { PackagesTable } from "@rhc-shared-components/packages-table";
const App = () => {
return (
<PackagesTable
isLoading={false}
vulnerabilities={vulnerabilities}
rpms={rpms}
hideToggler={false}
/>
);
};Development
yarn dev # Start dev server
yarn build # Build library
yarn lint # Check linting
yarn lint-fix # Fix linting issues