AppCockpit: add dark mode helper

Import the cockpit-dark-theme helper from the cockpit project. This detects
when dark mode is enabled and automatically applies the correct styles.
This commit is contained in:
Gianluca Zuccarelli 2025-06-17 15:26:42 +01:00 committed by Klara Simickova
parent cb08466734
commit 50d88e5949

View file

@ -3,6 +3,7 @@ import '@patternfly/patternfly/patternfly-addons.css';
import React from 'react';
import 'cockpit-dark-theme';
import { Page, PageSection } from '@patternfly/react-core';
import NotificationsPortal from '@redhat-cloud-services/frontend-components-notifications/NotificationPortal';
import { createRoot } from 'react-dom/client';