Skip to content

Commit

Permalink
👻 Remove shared app filter and unused menuActions
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 committed Sep 26, 2023
1 parent 5fbe7b6 commit 0631de7
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 463 deletions.
42 changes: 0 additions & 42 deletions client/src/app/components/MenuActions.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions client/src/app/components/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ import {
Text,
} from "@patternfly/react-core";
import { BreadCrumbPath } from "./BreadCrumbPath";
import { MenuActions } from "./MenuActions";
import { HorizontalNav } from "./HorizontalNav";

export interface PageHeaderProps {
title: string;
description?: React.ReactNode;
breadcrumbs: { title: string; path: string | (() => void) }[];
btnActions?: React.ReactNode;
menuActions: { label: string; callback: () => void }[];
navItems?: { title: string; path: string }[];
}

Expand All @@ -25,7 +23,6 @@ export const PageHeader: React.FC<PageHeaderProps> = ({
description,
breadcrumbs,
btnActions,
menuActions,
navItems,
}) => {
return (
Expand All @@ -42,11 +39,6 @@ export const PageHeader: React.FC<PageHeaderProps> = ({
</TextContent>
</SplitItem>
{btnActions && <SplitItem>{btnActions}</SplitItem>}
{menuActions.length > 0 && (
<SplitItem>
<MenuActions actions={menuActions} />
</SplitItem>
)}
</Split>
</StackItem>
{navItems && (
Expand Down
45 changes: 0 additions & 45 deletions client/src/app/components/tests/MenuActions.test.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions client/src/app/components/tests/PageHeader.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ describe("PageHeader", () => {
},
]}
btnActions={<Button>send email</Button>}
menuActions={[
{
label: "Edit",
callback: jest.fn(),
},
{
label: "Delete",
callback: jest.fn(),
},
]}
navItems={[
{
title: "Overview",
Expand Down

This file was deleted.

Loading

0 comments on commit 0631de7

Please sign in to comment.