mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Convert deprecated prop
This commit is contained in:
parent
2859e02dac
commit
b20de9ed83
@ -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 },
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user