π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
dedup
Manav Rathi9e9102910554
diff --git a/web/apps/photos/src/components/ExportFinished.tsx b/web/apps/photos/src/components/ExportFinished.tsxindex 84ee44680b..c1f4d791a4 100644--- a/web/apps/photos/src/components/ExportFinished.tsx+++ b/web/apps/photos/src/components/ExportFinished.tsx@@ -2,12 +2,12 @@ import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { formattedNumber } from "@/base/i18n";import { EnteFile } from "@/media/file";import { SpaceBetweenFlex } from "@ente/shared/components/Container";+import LinkButton from "@ente/shared/components/LinkButton";import { formatDateTime } from "@ente/shared/time/format";import { DialogActions, DialogContent, Stack, Typography } from "@mui/material";import { t } from "i18next";import { useState } from "react";import ExportPendingList from "./ExportPendingList";-import LinkButton from "./pages/gallery/LinkButton";interface Props {pendingExports: EnteFile[];diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsxindex e9d6b3446b..26267b0eb6 100644--- a/web/apps/photos/src/components/Sidebar/index.tsx+++ b/web/apps/photos/src/components/Sidebar/index.tsx@@ -67,7 +67,7 @@ import {import Typography from "@mui/material/Typography";import DeleteAccountModal from "components/DeleteAccountModal";import { WatchFolder } from "components/WatchFolder";-import LinkButton from "components/pages/gallery/LinkButton";+import LinkButton from "@ente/shared/components/LinkButton";import { t } from "i18next";import { useRouter } from "next/router";import { GalleryContext } from "pages/gallery";diff --git a/web/apps/photos/src/components/pages/gallery/LinkButton.tsx b/web/apps/photos/src/components/pages/gallery/LinkButton.tsxdeleted file mode 100644index 89f9eb59f4..0000000000--- a/web/apps/photos/src/components/pages/gallery/LinkButton.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { Link, type ButtonProps, type LinkProps } from "@mui/material";-import React from "react";--export type LinkButtonProps = React.PropsWithChildren<{- onClick: () => void;- variant?: string;- style?: React.CSSProperties;-}>;--const LinkButton: React.FC<- LinkProps<"button", { color?: ButtonProps["color"] }>-> = ({ children, sx, color, ...props }) => {- return (- <Link- component="button"- sx={{- color: "text.base",- textDecoration: "underline rgba(255, 255, 255, 0.4)",- "&:hover": {- color: `${color}.main`,- textDecoration: `underline `,- textDecorationColor: `${color}.main`,- },- ...sx,- }}- {...props}- >- {children}- </Link>- );-};--export default LinkButton;