diff --git a/src/app.jsx b/src/app.jsx index 6d2e4e2..6cf4d7b 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -17,11 +17,12 @@ * along with Cockpit; If not, see . */ -import cockpit from 'cockpit'; import React from 'react'; 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"; +import cockpit from 'cockpit'; + const _ = cockpit.gettext; export class Application extends React.Component { diff --git a/src/index.js b/src/index.js index ff4aa0d..f1c4da6 100644 --- a/src/index.js +++ b/src/index.js @@ -17,12 +17,14 @@ * along with Cockpit; If not, see . */ -import "cockpit-dark-theme"; -import "patternfly/patternfly-5-cockpit.scss"; - import React from 'react'; import { createRoot } from 'react-dom/client'; + +import "cockpit-dark-theme"; + import { Application } from './app.jsx'; + +import "patternfly/patternfly-5-cockpit.scss"; import './app.scss'; document.addEventListener("DOMContentLoaded", () => {