Skip to content

Commit

Permalink
Drop .jsx extension from imports
Browse files Browse the repository at this point in the history
Cockpit lib renames them to .tsx.
  • Loading branch information
martinpitt committed Dec 19, 2024
1 parent 2c18f40 commit 0a65586
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ContainerHealthLogs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { Flex, FlexItem } from "@patternfly/react-core/dist/esm/layouts/Flex";
import { CheckCircleIcon, ErrorCircleOIcon } from "@patternfly/react-icons";

import cockpit from 'cockpit';
import { ListingTable } from "cockpit-components-table.jsx";
import { ListingTable } from "cockpit-components-table";

import * as client from './client.js';
import * as utils from './util.js';
Expand Down
6 changes: 3 additions & 3 deletions src/Containers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { KebabDropdown } from "cockpit-components-dropdown.jsx";
import { useDialogs, DialogsContext } from "dialogs.jsx";

import cockpit from 'cockpit';
import { ListingPanel } from 'cockpit-components-listing-panel.jsx';
import { ListingTable } from "cockpit-components-table.jsx";
import * as machine_info from 'machine-info.js';
import { ListingPanel } from 'cockpit-components-listing-panel';
import { ListingTable } from "cockpit-components-table";
import * as machine_info from 'machine-info';

import ContainerCheckpointModal from './ContainerCheckpointModal.jsx';
import ContainerCommitModal from './ContainerCommitModal.jsx';
Expand Down
2 changes: 1 addition & 1 deletion src/ImageHistory.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';

import cockpit from 'cockpit';
import { ListingTable } from "cockpit-components-table.jsx";
import { ListingTable } from "cockpit-components-table";

import * as client from './client.js';
import * as utils from './util.js';
Expand Down
4 changes: 2 additions & 2 deletions src/Images.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { KebabDropdown } from "cockpit-components-dropdown.jsx";
import { useDialogs, DialogsContext } from "dialogs.jsx";

import cockpit from 'cockpit';
import { ListingPanel } from 'cockpit-components-listing-panel.jsx';
import { ListingTable } from "cockpit-components-table.jsx";
import { ListingPanel } from 'cockpit-components-listing-panel';
import { ListingTable } from "cockpit-components-table";

import { ImageDeleteModal } from './ImageDeleteModal.jsx';
import ImageDetails from './ImageDetails.jsx';
Expand Down
2 changes: 1 addition & 1 deletion src/PruneUnusedContainersModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Modal } from "@patternfly/react-core/dist/esm/components/Modal";
import { SortByDirection } from "@patternfly/react-table";

import cockpit from 'cockpit';
import { ListingTable } from 'cockpit-components-table.jsx';
import { ListingTable } from 'cockpit-components-table';

import * as client from './client.js';
import { RelativeTime } from './util.js';
Expand Down

0 comments on commit 0a65586

Please sign in to comment.