Skip to content

armgit / ente

Public Imported from GitHub
0

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

Conv

Manav Rathid2a787acbeb4
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 299ede98a5..570dcfb9e4 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -1,9 +1,12 @@
+import {
+ AccountsPageContents,
+ AccountsPageTitle,
+} from "@/accounts/components/layouts/centered-paper";
import {
SpaceBetweenFlex,
Stack100vhCenter,
} from "@/base/components/containers";
import { EnteLogoSVG } from "@/base/components/EnteLogo";
-import { FormPaper, FormPaperTitle } from "@/base/components/FormPaper";
import { LoadingIndicator } from "@/base/components/loaders";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { NavbarBase, SelectionBar } from "@/base/components/Navbar";
@@ -36,7 +39,6 @@ import { useAppContext } from "@/new/photos/types/context";
import {
CenteredFlex,
FluidContainer,
- VerticallyCentered,
} from "@ente/shared/components/Container";
import SingleInputForm, {
type SingleInputFormProps,
@@ -470,9 +472,9 @@ export default function PublicCollectionGallery() {
);
} else if (isPasswordProtected && !credentials.current.accessTokenJWT) {
return (
- <VerticallyCentered>
- <FormPaper>
- <FormPaperTitle>{t("password")}</FormPaperTitle>
+ <AccountsPageContents>
+ <AccountsPageTitle>{t("password")}</AccountsPageTitle>
+ <Stack>
<Typography
variant="small"
sx={{ color: "text.muted", mb: 2 }}
@@ -485,11 +487,15 @@ export default function PublicCollectionGallery() {
buttonText={t("unlock")}
fieldType="password"
/>
- </FormPaper>
- </VerticallyCentered>
+ </Stack>
+ </AccountsPageContents>
);
} else if (!publicFiles || !credentials.current) {
- return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;
+ return (
+ <Stack100vhCenter>
+ <Typography>{t("NOT_FOUND")}</Typography>
+ </Stack100vhCenter>
+ );
}
// TODO: memo this (after the dependencies are traceable).