π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web][photos] Update public album feed title and style join/signup button
Anand Baburajanbcd30025830a
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex 9843efa9e8..8991c64f21 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -684,7 +684,6 @@ export default function PublicCollectionGallery() {{publicCollection && collectionKey.current && (<PublicFeedSidebar{...publicFeedVisibilityProps}- albumName={publicCollection.name}files={publicFiles}credentials={credentials.current}collectionKey={collectionKey.current}@@ -709,6 +708,11 @@ const EnteLogoLink = styled("a")(({ theme }) => ({":hover": { color: theme.vars.palette.accent.main },}));+const GreenButton = styled(Button)(() => ({+ backgroundColor: "#08C225",+ "&:hover": { backgroundColor: "#07A820" },+}));+const AddPhotosButton: React.FC<ButtonishProps> = ({ onClick }) => {const disabled = uploadManager.isUploadInProgress();const isSmallWidth = useIsSmallWidth();@@ -780,16 +784,16 @@ const PrimaryActionButton: React.FC<PrimaryActionButtonProps> = ({if (enableJoin) {return (- <Button color="accent" onClick={handleJoinAlbum}>+ <GreenButton color="accent" onClick={handleJoinAlbum}>{t("join_album")}- </Button>+ </GreenButton>);}return (- <Button color="accent" href={getSignUpOrInstallURL(isTouchscreen)}>+ <GreenButton color="accent" href={getSignUpOrInstallURL(isTouchscreen)}>{isTouchscreen ? t("install") : t("sign_up")}- </Button>+ </GreenButton>);};diff --git a/web/packages/gallery/components/viewer/PublicFeedSidebar.tsx b/web/packages/gallery/components/viewer/PublicFeedSidebar.tsxindex 26d8efd01e..08eea1b292 100644--- a/web/packages/gallery/components/viewer/PublicFeedSidebar.tsx+++ b/web/packages/gallery/components/viewer/PublicFeedSidebar.tsx@@ -157,10 +157,6 @@ export interface PublicFeedItemClickInfo {}export interface PublicFeedSidebarProps extends ModalVisibilityProps {- /**- * The album name to display in the header.- */- albumName: string;/*** The files in the album, used to display thumbnails and determine file type.*/@@ -649,7 +645,6 @@ const getFeedItemClickInfo = (export const PublicFeedSidebar: React.FC<PublicFeedSidebarProps> = ({open,onClose,- albumName,files = [],credentials,collectionKey,@@ -799,7 +794,7 @@ export const PublicFeedSidebar: React.FC<PublicFeedSidebarProps> = ({...theme.applyStyles("dark", { color: "#fff" }),})}>- {albumName}+ {t("feed")}</Typography><CloseButton onClick={onClose}><CloseIcon sx={{ fontSize: 22 }} />