From 63212c3cad4a3f85cc3b4ce9874b3afab2423655 Mon Sep 17 00:00:00 2001 From: Luis Felipe Risch <lfr20@inf.ufpr.br> Date: Mon, 1 Feb 2021 12:18:34 -0300 Subject: [PATCH] removed the decoration from the link --- src/Components/ShareModal.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Components/ShareModal.js b/src/Components/ShareModal.js index 4089314b..93eb4828 100644 --- a/src/Components/ShareModal.js +++ b/src/Components/ShareModal.js @@ -73,7 +73,7 @@ export default function ReportModal (props) { {/*Share to facebook*/} <Grid item xs={4}> - <a + <StyledLink href={"https://www.facebook.com/sharer/sharer.php?u=" + props.link} rel="noreferrer" target="_blank"> @@ -81,12 +81,12 @@ export default function ReportModal (props) { <img src={Facebook} alt="facebook-logo"/> <p>FACEBOOK</p> </ShareButton> - </a> + </StyledLink> </Grid> {/*Share to Twitter*/} <Grid item xs={4}> - <a + <StyledLink href={"https://www.twitter.com/intent/tweet?url=" + props.link} rel="noreferrer" target="_blank"> @@ -94,7 +94,7 @@ export default function ReportModal (props) { <img src={Twitter} alt="twitter-logo"/> <p>TWITTER</p> </ShareButton> - </a> + </StyledLink> </Grid> {/*Get shareable link*/} @@ -242,3 +242,6 @@ const Container = styled.div` height : 100%; } ` +const StyledLink = styled.a` + text-decoration : none; +` \ No newline at end of file -- GitLab