diff --git a/components/ShareButtons.jsx b/components/ShareButtons.jsx index 07165a3..e937e94 100644 --- a/components/ShareButtons.jsx +++ b/components/ShareButtons.jsx @@ -10,8 +10,8 @@ import { EmailIcon, } from 'react-share'; -const ShareButton = ({ property }) => { - const shareUrl = `http://${process.env.NEXT_PUBLIC_DOMAIN}/properties/${property._id}`; +const ShareButtons = ({ property }) => { + const shareUrl = `${process.env.NEXT_PUBLIC_DOMAIN}/properties/${property._id}`; return ( <> @@ -22,17 +22,19 @@ const ShareButton = ({ property }) => { + + { > + @@ -51,4 +54,4 @@ const ShareButton = ({ property }) => { ); }; -export default ShareButton; +export default ShareButtons;