Skip to content

armgit / ente

Public Imported from GitHub
0

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

Start rooting

Manav Rathibaeb09a8003d
diff --git a/web/apps/photos/src/components/Collections/CollectionSelector.tsx b/web/apps/photos/src/components/Collections/CollectionSelector.tsx
index 78a6de6e34..cb905962f2 100644
--- a/web/apps/photos/src/components/Collections/CollectionSelector.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionSelector.tsx
@@ -19,7 +19,6 @@ import {
useMediaQuery,
} from "@mui/material";
import { t } from "i18next";
-import PropTypes from "prop-types";
import { useEffect, useState } from "react";
import { createUnCategorizedCollection } from "services/collectionService";
import { CollectionSelectorIntent } from "types/gallery";
@@ -132,7 +131,6 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
<Dialog_
onClose={onUserTriggeredClose}
open={props.open}
- position="center"
fullScreen={isMobile}
fullWidth={true}
>
@@ -170,11 +168,10 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
export const AllCollectionMobileBreakpoint = 559;
-export const Dialog_ = styled(Dialog)<{
- position: "flex-start" | "center" | "flex-end";
-}>(({ theme, position }) => ({
+export const Dialog_ = styled(Dialog)(({ theme }) => ({
"& .MuiDialog-container": {
- justifyContent: position,
+ justifyContent: "center",
+ border: "1px solid red",
},
"& .MuiPaper-root": {
maxWidth: "494px",
@@ -196,11 +193,6 @@ export const Dialog_ = styled(Dialog)<{
},
}));
-Dialog_.propTypes = {
- children: PropTypes.node,
- onClose: PropTypes.func.isRequired,
-};
-
interface CollectionSelectorCardProps {
collectionSummary: CollectionSummary;
onCollectionClick: (collectionID: number) => void;