Merge pull request #263 from the-programmers-hangout/feat-use-noreferrer-on-links

feat: use noreferrer on links
This commit is contained in:
Jean-Philippe Sirois
2020-05-21 01:32:15 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -3,7 +3,10 @@ import * as SC from "./styles"
export const DiscordButton: FC = ({ children }) => {
return (
<SC.DiscordButtonWrapper href="https://discord.gg/programming">
<SC.DiscordButtonWrapper
rel="noreferrer"
href="https://discord.gg/programming"
>
<SC.StyledDiscordLogo /> {children}
</SC.DiscordButtonWrapper>
)
+1 -1
View File
@@ -11,7 +11,7 @@ export const Link: FC<ILinkProps> = ({ children, to }) => {
}
return (
<SC.LinkExternal href={to} target="_blank">
<SC.LinkExternal rel="noreferrer" href={to} target="_blank">
{children}
</SC.LinkExternal>
)