Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen committed Feb 22, 2024
1 parent bd9c146 commit 0e28819
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({ children }) => {

const toggleDarkTheme = (_evt, selected) => {
const darkThemeToggleClicked = !selected === isDarkTheme
document.querySelector('html').classList.toggle('pf-v5-theme-dark', darkThemeToggleClicked);
document.querySelector('html')?.classList.toggle('pf-v5-theme-dark', darkThemeToggleClicked);
setIsDarkTheme(darkThemeToggleClicked);
};

Expand Down
12 changes: 6 additions & 6 deletions src/app/Inventory/Inventory.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import * as React from "react";
import {ISupportProps} from "@app/Resources/Resources";
import {
Bullseye,
Button,
EmptyState,
EmptyStateActions,
EmptyStateBody,
EmptyStateFooter,
Button,
Bullseye,
EmptyStateActions,
Menu,
MenuContent,
MenuList,
MenuItem,
MenuList,
MenuToggle,
MenuToggleCheckbox,
Popper,
MenuToggleElement,
Pagination,
Popper,
SearchInput,
Toolbar,
ToolbarContent,
ToolbarItem
} from '@patternfly/react-core';
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
import {MenuToggleElement} from "@patternfly/react-core/dist/esm/components/MenuToggle/MenuToggle";

interface Repository {
name: string;
Expand Down
110 changes: 110 additions & 0 deletions src/app/__snapshots__/app.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,116 @@ exports[`App tests should render default App component 1`] = `
</svg>
</span>
</div>
<div
class="pf-v5-c-masthead__content"
>
<div
class="pf-v5-c-toolbar"
data-ouia-component-id="OUIA-Generated-Toolbar-1"
data-ouia-component-type="PF5/Toolbar"
data-ouia-safe="true"
id="pf-random-id-0"
>
<div
class="pf-v5-c-toolbar__content"
>
<div
class="pf-v5-c-toolbar__content-section"
>
<div
class="pf-v5-c-toolbar__item"
>
<div
aria-label="Dark theme toggle group"
class="pf-v5-c-toggle-group"
role="group"
>
<div
class="pf-v5-c-toggle-group__item"
>
<button
aria-label="light theme toggle"
aria-pressed="true"
class="pf-v5-c-toggle-group__button pf-m-selected"
type="button"
>
<span
class="pf-v5-c-toggle-group__icon"
>
<span
class="pf-v5-c-icon pf-m-md"
>
<span
class="pf-v5-c-icon__content"
>
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 512 512"
width="1em"
>
<path
d="M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"
/>
</svg>
</span>
</span>
</span>
</button>
</div>
<div
class="pf-v5-c-toggle-group__item"
>
<button
aria-label="dark theme toggle"
aria-pressed="false"
class="pf-v5-c-toggle-group__button"
type="button"
>
<span
class="pf-v5-c-toggle-group__icon"
>
<span
class="pf-v5-c-icon pf-m-md"
>
<span
class="pf-v5-c-icon__content"
>
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 512 512"
width="1em"
>
<path
d="M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"
/>
</svg>
</span>
</span>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div
class="pf-v5-c-toolbar__content pf-m-hidden"
hidden=""
>
<div
class="pf-v5-c-toolbar__group"
/>
</div>
</div>
</div>
</header>
<div
aria-hidden="false"
Expand Down

0 comments on commit 0e28819

Please sign in to comment.