π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Keep JSX together
Manav Rathi85673177f58e
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex 7c1664e765..2643cdc8c4 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -423,41 +423,6 @@ export default function PublicCollectionGallery() {await syncWithRemote();};- if (loading) {- if (!publicFiles) {- return (- <VerticallyCentered>- <ActivityIndicator />- </VerticallyCentered>- );- }- } else {- if (errorMessage) {- return <VerticallyCentered>{errorMessage}</VerticallyCentered>;- }- if (isPasswordProtected && !passwordJWTToken.current) {- return (- <VerticallyCentered>- <FormPaper>- <FormPaperTitle>{t("password")}</FormPaperTitle>- <Typography color={"text.muted"} mb={2} variant="small">- {t("link_password_description")}- </Typography>- <SingleInputForm- callback={verifyLinkPassword}- placeholder={t("password")}- buttonText={t("unlock")}- fieldType="password"- />- </FormPaper>- </VerticallyCentered>- );- }- if (!publicFiles) {- return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;- }- }-const clearSelection = () => {if (!selected?.count) {return;@@ -487,6 +452,37 @@ export default function PublicCollectionGallery() {}};+ if (loading) {+ if (!publicFiles) {+ return (+ <VerticallyCentered>+ <ActivityIndicator />+ </VerticallyCentered>+ );+ }+ } else if (errorMessage) {+ return <VerticallyCentered>{errorMessage}</VerticallyCentered>;+ } else if (isPasswordProtected && !passwordJWTToken.current) {+ return (+ <VerticallyCentered>+ <FormPaper>+ <FormPaperTitle>{t("password")}</FormPaperTitle>+ <Typography color={"text.muted"} mb={2} variant="small">+ {t("link_password_description")}+ </Typography>+ <SingleInputForm+ callback={verifyLinkPassword}+ placeholder={t("password")}+ buttonText={t("unlock")}+ fieldType="password"+ />+ </FormPaper>+ </VerticallyCentered>+ );+ } else if (!publicFiles) {+ return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;+ }+return (<PublicCollectionGalleryContext.Providervalue={{