Skip to content

Commit

Permalink
fix(layout): [antd: Drawer] bodyStyle is deprecated waring (#7864)
Browse files Browse the repository at this point in the history
  • Loading branch information
OXXD authored Nov 9, 2023
1 parent 694b5d3 commit 912c4dd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/layout/src/components/SiderMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ const SiderMenuWrapper: React.FC<SiderMenuProps & PrivateSiderMenuProps> = (
maskClosable
closable={false}
width={siderWidth}
bodyStyle={{
height: '100vh',
padding: 0,
display: 'flex',
flexDirection: 'row',
backgroundColor: token.layout?.sider?.colorMenuBackground,
styles={{
body: {
height: '100vh',
padding: 0,
display: 'flex',
flexDirection: 'row',
backgroundColor: token.layout?.sider?.colorMenuBackground,
}
}}
>
<SiderMenu
Expand Down

0 comments on commit 912c4dd

Please sign in to comment.