Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathia01077a1a414
diff --git a/web/apps/photos/src/components/pages/sharedAlbum/GoToEnte.tsx b/web/apps/photos/src/components/pages/sharedAlbum/GoToEnte.tsx
deleted file mode 100644
index f00b5afcd6..0000000000
--- a/web/apps/photos/src/components/pages/sharedAlbum/GoToEnte.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import { useIsTouchscreen } from "@/base/hooks";
-import { Button, styled } from "@mui/material";
-import { t } from "i18next";
-
-export const NoStyleAnchor = styled("a")`
- color: inherit;
- text-decoration: none !important;
- &:hover {
- color: #fff !important;
- }
-`;
-
-function GoToEnte() {
- // Touchscreen devices are overwhemingly likely to be Android or iOS.
- const isTouchscreen = useIsTouchscreen();
-
- return (
- <Button
- color="accent"
- LinkComponent={NoStyleAnchor}
- href="https://ente.io"
- >
- {isTouchscreen ? t("INSTALL") : t("SIGN_UP")}
- </Button>
- );
-}
-
-export default GoToEnte;
diff --git a/web/apps/photos/src/components/pages/sharedAlbum/Navbar.tsx b/web/apps/photos/src/components/pages/sharedAlbum/Navbar.tsx
index 18abdc436e..b5941221c0 100644
--- a/web/apps/photos/src/components/pages/sharedAlbum/Navbar.tsx
+++ b/web/apps/photos/src/components/pages/sharedAlbum/Navbar.tsx
@@ -1,10 +1,10 @@
import { NavbarBase } from "@/base/components/Navbar";
+import { useIsTouchscreen } from "@/base/hooks";
import { FluidContainer } from "@ente/shared/components/Container";
import AddPhotoAlternateOutlined from "@mui/icons-material/AddPhotoAlternateOutlined";
-import { Box } from "@mui/material";
+import { Box, Button, styled } from "@mui/material";
import UploadButton from "components/Upload/UploadButton";
import { t } from "i18next";
-import GoToEnte from "./GoToEnte";
export default function SharedAlbumNavbar({ showUploadButton, openUploader }) {
return (
@@ -57,3 +57,26 @@ const Ente: React.FC = () => {
</svg>
);
};
+
+const GoToEnte: React.FC = () => {
+ // Touchscreen devices are overwhemingly likely to be Android or iOS.
+ const isTouchscreen = useIsTouchscreen();
+
+ return (
+ <Button
+ color="accent"
+ LinkComponent={UnstyledAnchor}
+ href="https://ente.io"
+ >
+ {isTouchscreen ? t("INSTALL") : t("SIGN_UP")}
+ </Button>
+ );
+};
+
+const UnstyledAnchor = styled("a")`
+ color: inherit;
+ text-decoration: none !important;
+ &:hover {
+ color: #fff !important;
+ }
+`;