Removed empty panel (#4339)

This commit is contained in:
Erik Jan de Wit 2023-02-07 12:31:04 +01:00 committed by GitHub
parent fb3d5e4561
commit df49a82033
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,4 @@
import type AuthenticationExecutionInfoRepresentation from "@keycloak/keycloak-admin-client/lib/defs/authenticationExecutionInfoRepresentation";
import {
Drawer,
DrawerActions,
DrawerCloseButton,
DrawerContent,
DrawerContentBody,
DrawerHead,
DrawerPanelContent,
} from "@patternfly/react-core";
import { MouseEvent as ReactMouseEvent, useMemo, useState } from "react";
import {
Background,
@ -289,20 +280,6 @@ export const FlowDiagram = ({
};
return (
<Drawer isExpanded={expandDrawer} onExpand={() => setExpandDrawer(true)}>
<DrawerContent
panelContent={
<DrawerPanelContent>
<DrawerHead>
<span tabIndex={expandDrawer ? 0 : -1}>drawer-panel</span>
<DrawerActions>
<DrawerCloseButton onClick={() => setExpandDrawer(false)} />
</DrawerActions>
</DrawerHead>
</DrawerPanelContent>
}
>
<DrawerContentBody>
<ReactFlow
nodes={nodes}
edges={edges}
@ -318,8 +295,5 @@ export const FlowDiagram = ({
<Controls />
<Background />
</ReactFlow>
</DrawerContentBody>
</DrawerContent>
</Drawer>
);
};