Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update

Manav Rathi5797be3460f7
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 0ae7d9292a..61c3bca479 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -15,7 +15,11 @@ import {
AccountsPageContents,
AccountsPageTitle,
} from "ente-accounts/components/layouts/centered-paper";
-import { SpacedRow, Stack100vhCenter } from "ente-base/components/containers";
+import {
+ CenteredFill,
+ SpacedRow,
+ Stack100vhCenter,
+} from "ente-base/components/containers";
import { EnteLogo } from "ente-base/components/EnteLogo";
import {
LoadingIndicator,
@@ -52,7 +56,6 @@ import {
} from "ente-new/photos/services/collection";
import { sortFiles } from "ente-new/photos/services/files";
import { usePhotosAppContext } from "ente-new/photos/types/context";
-import { CenteredFlex } from "ente-shared/components/Container";
import SingleInputForm, {
type SingleInputFormProps,
} from "ente-shared/components/SingleInputForm";
@@ -275,9 +278,9 @@ export default function PublicCollectionGallery() {
onAddPhotos
? {
item: (
- <CenteredFlex sx={{ marginTop: "56px" }}>
+ <CenteredFill sx={{ marginTop: "56px" }}>
<AddMorePhotosButton onClick={onAddPhotos} />
- </CenteredFlex>
+ </CenteredFill>
),
height: 104,
}
diff --git a/web/packages/shared/components/Container.tsx b/web/packages/shared/components/Container.tsx
index 0a04135022..63b9bf82b5 100644
--- a/web/packages/shared/components/Container.tsx
+++ b/web/packages/shared/components/Container.tsx
@@ -23,16 +23,3 @@ export const FlexWrapper = styled(Box)`
export const SpaceBetweenFlex = styled(FlexWrapper)`
justify-content: space-between;
`;
-
-/**
- * Deprecated, use {@link CenteredRow} from ente-base/components/mui/container
- * instead
- */
-export const CenteredFlex = styled(FlexWrapper)`
- justify-content: center;
-`;
-
-export const VerticallyCenteredFlex = styled(Box)({
- display: "flex",
- alignItems: "center",
-});