Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update deprecated

Manav Rathi14bfaf97f3d6
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index 8e03adf9f0..9f702136a2 100644
--- a/web/apps/auth/src/pages/auth.tsx
+++ b/web/apps/auth/src/pages/auth.tsx
@@ -217,12 +217,15 @@ const CodeDisplay: React.FC<CodeDisplayProps> = ({ code }) => {
<Snackbar
open={openCopied}
message={t("copied")}
- ContentProps={{
- sx: (theme) => ({
- backgroundColor: theme.vars.palette.fill.faint,
- color: theme.vars.palette.primary.main,
- backdropFilter: "blur(10px)",
- }),
+ slotProps={{
+ content: {
+ sx: (theme) => ({
+ backgroundColor:
+ theme.vars.palette.fill.faint,
+ color: theme.vars.palette.primary.main,
+ backdropFilter: "blur(10px)",
+ }),
+ },
}}
/>
</ButtonBase>
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 4935dea01f..0e59cabb25 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -717,9 +717,11 @@ const CollectionSortOrderMenu: React.FC<CollectionSortOrderMenuProps> = ({
anchorEl={overFlowMenuIconRef.current}
open={open}
onClose={onClose}
- MenuListProps={{
- disablePadding: true,
- "aria-labelledby": "collection-files-sort",
+ slotProps={{
+ list: {
+ disablePadding: true,
+ "aria-labelledby": "collection-files-sort",
+ },
}}
anchorOrigin={{
vertical: "bottom",
diff --git a/web/packages/base/components/OverflowMenu.tsx b/web/packages/base/components/OverflowMenu.tsx
index b3a474c92b..8f61ba9cbf 100644
--- a/web/packages/base/components/OverflowMenu.tsx
+++ b/web/packages/base/components/OverflowMenu.tsx
@@ -74,12 +74,14 @@ export const OverflowMenu: React.FC<
{...(anchorEl ? { anchorEl } : {})}
open={!!anchorEl}
onClose={() => setAnchorEl(undefined)}
- MenuListProps={{
- // Disable padding at the top and bottom of the menu list.
- disablePadding: true,
- "aria-labelledby": ariaID,
+ slotProps={{
+ paper: { sx: menuPaperSxProps },
+ list: {
+ // Disable padding at the top and bottom of the menu list.
+ disablePadding: true,
+ "aria-labelledby": ariaID,
+ },
}}
- slotProps={{ paper: { sx: menuPaperSxProps } }}
anchorOrigin={{ vertical: "bottom", horizontal: "right" }}
transformOrigin={{ vertical: "top", horizontal: "right" }}
>
diff --git a/web/packages/new/photos/components/DropdownInput.tsx b/web/packages/new/photos/components/DropdownInput.tsx
index af095dfcfb..5522028ace 100644
--- a/web/packages/new/photos/components/DropdownInput.tsx
+++ b/web/packages/new/photos/components/DropdownInput.tsx
@@ -73,17 +73,17 @@ export const DropdownInput = <T extends string>({
// maxWidth to 0 forces element widths to equal minWidth.
sx: { maxWidth: 0 },
},
- },
- MenuListProps: {
- sx: {
- backgroundColor: "background.paper2",
- ".MuiMenuItem-root": {
- color: "text.faint",
- whiteSpace: "normal",
- },
- // Make the selected item pop out by using color.
- "&&& > .Mui-selected": {
- color: "text.base",
+ list: {
+ sx: {
+ backgroundColor: "background.paper2",
+ ".MuiMenuItem-root": {
+ color: "text.faint",
+ whiteSpace: "normal",
+ },
+ // Make the selected item pop out by using color.
+ "&&& > .Mui-selected": {
+ color: "text.base",
+ },
},
},
},