Convert deprecated prop

This commit is contained in:
Manav Rathi 2025-02-28 19:42:58 +05:30
parent 2859e02dac
commit b20de9ed83
No known key found for this signature in database

View File

@ -23,16 +23,23 @@ import React from "react";
* It also does some trickery with a sticky opaque bar to ensure that the
* content scrolls below our inline title bar on desktop.
*/
export const SidebarDrawer: React.FC<DrawerProps> = ({ children, ...rest }) => (
export const SidebarDrawer: React.FC<DrawerProps> = ({
slotProps,
children,
...rest
}) => (
<Drawer
{...rest}
PaperProps={{
sx: {
maxWidth: "375px",
width: "100%",
scrollbarWidth: "thin",
// Need to increase specificity to override inherited padding.
"&&": { padding: 0 },
slotProps={{
...(slotProps ?? {}),
paper: {
sx: {
maxWidth: "375px",
width: "100%",
scrollbarWidth: "thin",
// Need to increase specificity to override inherited padding.
"&&": { padding: 0 },
},
},
}}
>