Skip to content

Commit

Permalink
fix(Page): Remove drawer content body wrapper from notification drawer (
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj authored Oct 2, 2024
1 parent fe6871c commit ce25e4c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-core/src/components/Page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styles from '@patternfly/react-styles/css/components/Page/page';
import { css } from '@patternfly/react-styles';
import globalBreakpointXl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_xl';
import { debounce, canUseDOM } from '../../helpers/util';
import { Drawer, DrawerContent, DrawerContentBody, DrawerPanelContent } from '../Drawer';
import { Drawer, DrawerContent, DrawerPanelContent } from '../Drawer';
import { PageBreadcrumb, PageBreadcrumbProps } from './PageBreadcrumb';
import { PageGroup, PageGroupProps } from './PageGroup';
import { getResizeObserver } from '../../helpers/resizeObserver';
Expand Down Expand Up @@ -345,9 +345,7 @@ class Page extends React.Component<PageProps, PageState> {
{notificationDrawer && (
<div className={css(styles.pageDrawer)}>
<Drawer isExpanded={isNotificationDrawerExpanded} onExpand={(event) => onNotificationDrawerExpand(event)}>
<DrawerContent panelContent={panelContent}>
<DrawerContentBody>{main}</DrawerContentBody>
</DrawerContent>
<DrawerContent panelContent={panelContent}>{main}</DrawerContent>
</Drawer>
</div>
)}
Expand Down

0 comments on commit ce25e4c

Please sign in to comment.