fix(CollectionSharingModal): remove recipient email

This commit is contained in:
Aminejv 2021-08-17 22:12:31 +01:00
parent 61c27f2100
commit 531df1cd48

View File

@ -50,14 +50,8 @@ export const CollectionSharingModal = () => {
window.open(`https://twitter.com/intent/tweet?text=${title}:%0D&url=${link}`, "_blank");
const handleEmailSharing = () => {
let { email } = user;
if (!email) {
email = prompt("Please enter your email");
}
if (!email) return;
//TODO(amine): change email copy
window.open(`mailfrom: ?subject=Check out this collection&body=${link}`, "_b");
window.open(`mailto: ?subject=Check out this collection&body=${link}`, "_b");
};
const handleLinkCopy = () => (Utilities.copyToClipboard(link), changeView("LINK_COPIED"));