Use whole path in patternfly imports

Otherwise we rely on treeshaking mechanisms to remove unused code, thus
making our bundle size more vulnerable to bundler's ability to drop dead
code.
This commit is contained in:
Katerina Koukiou 2023-02-23 15:38:00 +01:00
parent cd6b2afc15
commit f0fe270077

View file

@ -19,7 +19,8 @@
import cockpit from 'cockpit'; import cockpit from 'cockpit';
import React from 'react'; import React from 'react';
import { Alert, Card, CardTitle, CardBody } from '@patternfly/react-core'; import { Alert } from "@patternfly/react-core/dist/esm/components/Alert/index.js";
import { Card, CardBody, CardTitle } from "@patternfly/react-core/dist/esm/components/Card/index.js";
const _ = cockpit.gettext; const _ = cockpit.gettext;