Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fin

Manav Rathi20c6f15a0fe2
diff --git a/web/apps/photos/src/components/Collections/AllCollections/index.tsx b/web/apps/photos/src/components/Collections/AllCollections/index.tsx
index 3230afff24..d875792778 100644
--- a/web/apps/photos/src/components/Collections/AllCollections/index.tsx
+++ b/web/apps/photos/src/components/Collections/AllCollections/index.tsx
@@ -38,7 +38,7 @@ export default function AllCollections(props: AllCollectionsProps) {
onChangeCollectionsSortBy,
isInHiddenSection,
} = props;
- const isMobile = useMediaQuery("(max-width: 428px)");
+ const fullScreen = useMediaQuery("(max-width: 428px)");
const onCollectionClick = (collectionID: number) => {
onSelectCollectionID(collectionID);
@@ -47,10 +47,8 @@ export default function AllCollections(props: AllCollectionsProps) {
return (
<AllCollectionDialog
- open={open}
- onClose={onClose}
- TransitionComponent={SlideUpTransition}
- fullScreen={isMobile}
+ {...{ open, onClose, fullScreen }}
+ slots={{ transition: SlideUpTransition }}
fullWidth
>
<AllCollectionsHeader
diff --git a/web/packages/new/photos/components/DevSettings.tsx b/web/packages/new/photos/components/DevSettings.tsx
index 8a77b8414c..0a2436367e 100644
--- a/web/packages/new/photos/components/DevSettings.tsx
+++ b/web/packages/new/photos/components/DevSettings.tsx
@@ -44,7 +44,7 @@ export const DevSettings: React.FC<DevSettingsProps> = ({ open, onClose }) => {
<Dialog
{...{ open, fullScreen }}
onClose={handleDialogClose}
- TransitionComponent={SlideUpTransition}
+ slots={{ transition: SlideUpTransition }}
maxWidth="xs"
fullWidth
>
diff --git a/web/packages/new/photos/components/WhatsNew.tsx b/web/packages/new/photos/components/WhatsNew.tsx
index 80b47cc9d9..b2e7e65b9f 100644
--- a/web/packages/new/photos/components/WhatsNew.tsx
+++ b/web/packages/new/photos/components/WhatsNew.tsx
@@ -38,7 +38,7 @@ export const WhatsNew: React.FC<WhatsNewProps> = ({ open, onClose }) => {
return (
<Dialog
{...{ open, fullScreen }}
- TransitionComponent={SlideUpTransition}
+ slots={{ transition: SlideUpTransition }}
maxWidth="xs"
fullWidth
>
diff --git a/web/packages/new/photos/components/mui/SlideUpTransition.tsx b/web/packages/new/photos/components/mui/SlideUpTransition.tsx
index 586fed2f4b..ffe461ffb2 100644
--- a/web/packages/new/photos/components/mui/SlideUpTransition.tsx
+++ b/web/packages/new/photos/components/mui/SlideUpTransition.tsx
@@ -3,8 +3,8 @@ import type { TransitionProps } from "@mui/material/transitions";
import React, { forwardRef } from "react";
/**
- * A React component that can be passed as the {@link TransitionComponent} prop
- * to a MUI {@link Dialog} to get it to use a slide transition (by default, the
+ * A React component that can be passed as the {@link slots.transition} prop to
+ * a MUI {@link Dialog} to get it to use a slide transition (by default, the
* dialog does a fade transition).
*/
export const SlideUpTransition = forwardRef(function Transition(