Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Convert deprecated prop

Manav Rathib20de9ed8320
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index 6c96b47859..97f321e427 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -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 },
+ },
},
}}
>