Skip to content

Commit

Permalink
Import selected PF components only
Browse files Browse the repository at this point in the history
This does not currently make any difference for the dist/ size because
of patternfly/patternfly-react#10618. But we
do that in all other projects.
  • Loading branch information
martinpitt committed Jun 17, 2024
1 parent c2ad975 commit 4c50e95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/files-breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
* You should have received a copy of the GNU Lesser General Public License
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/
import cockpit from "cockpit";
import React from "react";

import { CheckIcon, HddIcon, PencilAltIcon, TimesIcon } from "@patternfly/react-icons";
import { Button } from "@patternfly/react-core/dist/esm/components/Button";
import { Flex, FlexItem } from "@patternfly/react-core/dist/esm/layouts/Flex";
import { Page } from "@patternfly/react-core/dist/esm/components/Page";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import Page.
import { TextInput } from "@patternfly/react-core/dist/esm/components/TextInput";

import { Button, Flex, FlexItem, PageBreadcrumb, TextInput } from "@patternfly/react-core";
import cockpit from "cockpit";

import { SettingsDropdown } from "./settings-dropdown.jsx";

Expand Down
3 changes: 2 additions & 1 deletion src/files-folder-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
*/

import React, { useState } from "react";
import { Card } from "@patternfly/react-core";

import { Card } from '@patternfly/react-core/dist/esm/components/Card';

import { FolderFileInfo } from "./app";
import { FilesCardBody } from "./files-card-body.jsx";
Expand Down

0 comments on commit 4c50e95

Please sign in to comment.