Skip to content

Commit ce25e4c

Browse files
authored
fix(Page): Remove drawer content body wrapper from notification drawer (#11094)
1 parent fe6871c commit ce25e4c

File tree

1 file changed

+2
-4
lines changed
  • packages/react-core/src/components/Page

1 file changed

+2
-4
lines changed

packages/react-core/src/components/Page/Page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styles from '@patternfly/react-styles/css/components/Page/page';
33
import { css } from '@patternfly/react-styles';
44
import globalBreakpointXl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_xl';
55
import { debounce, canUseDOM } from '../../helpers/util';
6-
import { Drawer, DrawerContent, DrawerContentBody, DrawerPanelContent } from '../Drawer';
6+
import { Drawer, DrawerContent, DrawerPanelContent } from '../Drawer';
77
import { PageBreadcrumb, PageBreadcrumbProps } from './PageBreadcrumb';
88
import { PageGroup, PageGroupProps } from './PageGroup';
99
import { getResizeObserver } from '../../helpers/resizeObserver';
@@ -345,9 +345,7 @@ class Page extends React.Component<PageProps, PageState> {
345345
{notificationDrawer && (
346346
<div className={css(styles.pageDrawer)}>
347347
<Drawer isExpanded={isNotificationDrawerExpanded} onExpand={(event) => onNotificationDrawerExpand(event)}>
348-
<DrawerContent panelContent={panelContent}>
349-
<DrawerContentBody>{main}</DrawerContentBody>
350-
</DrawerContent>
348+
<DrawerContent panelContent={panelContent}>{main}</DrawerContent>
351349
</Drawer>
352350
</div>
353351
)}

0 commit comments

Comments
 (0)