π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
elsewhere
Manav Rathieed42c9df574
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 538a4425cc..c29a284262 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -1197,7 +1197,7 @@ const PublicShare: React.FC<PublicShareProps> = ({}}, [publicShareProp]);- const copyToClipboardHelper = () => {+ const handleCopyLink = () => {navigator.clipboard.writeText(publicShareUrl);};@@ -1220,7 +1220,7 @@ const PublicShare: React.FC<PublicShareProps> = ({)}<PublicLinkCreated{...publicLinkCreatedVisibilityProps}- onCopyLink={copyToClipboardHelper}+ onCopyLink={handleCopyLink}/></>);@@ -1245,8 +1245,6 @@ const ManagePublicShare: React.FC<ManagePublicShareProps> = ({const [copied, handleCopyLink] = useClipboardCopy(publicShareUrl);- const CopyableIcon = copied ? DoneIcon : ContentCopyIcon;-const closeManageShare = () => setManageShareView(false);const openManageShare = () => setManageShareView(true);@@ -1267,7 +1265,13 @@ const ManagePublicShare: React.FC<ManagePublicShareProps> = ({/>) : (<RowButton- startIcon={<CopyableIcon />}+ startIcon={+ copied ? (+ <DoneIcon sx={{ color: "accent.main" }} />+ ) : (+ <ContentCopyIcon />+ )+ }onClick={handleCopyLink}disabled={isLinkExpired(publicShareProp.validTill)}label={t("copy_link")}@@ -1322,6 +1326,8 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({const [sharableLinkError, setSharableLinkError] = useState(null);+ const [copied, handleCopyLink] = useClipboardCopy(publicShareUrl);+const handleRootClose = () => {onClose();onRootClose();@@ -1355,10 +1361,6 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({}};- const copyToClipboardHelper = (text: string) => () => {- navigator.clipboard.writeText(text);- };-return (<NestedSidebarDraweranchor="right"@@ -1411,8 +1413,14 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({</RowButtonGroup><RowButtonGroup><RowButton- startIcon={<ContentCopyIcon />}- onClick={copyToClipboardHelper(publicShareUrl)}+ startIcon={+ copied ? (+ <DoneIcon sx={{ color: "accent.main" }} />+ ) : (+ <ContentCopyIcon />+ )+ }+ onClick={handleCopyLink}label={t("copy_link")}/></RowButtonGroup>