mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 07:56:12 +02:00
Merge pull request #263 from the-programmers-hangout/feat-use-noreferrer-on-links
feat: use noreferrer on links
This commit is contained in:
@@ -3,7 +3,10 @@ import * as SC from "./styles"
|
|||||||
|
|
||||||
export const DiscordButton: FC = ({ children }) => {
|
export const DiscordButton: FC = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
<SC.DiscordButtonWrapper href="https://discord.gg/programming">
|
<SC.DiscordButtonWrapper
|
||||||
|
rel="noreferrer"
|
||||||
|
href="https://discord.gg/programming"
|
||||||
|
>
|
||||||
<SC.StyledDiscordLogo /> {children}
|
<SC.StyledDiscordLogo /> {children}
|
||||||
</SC.DiscordButtonWrapper>
|
</SC.DiscordButtonWrapper>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export const Link: FC<ILinkProps> = ({ children, to }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SC.LinkExternal href={to} target="_blank">
|
<SC.LinkExternal rel="noreferrer" href={to} target="_blank">
|
||||||
{children}
|
{children}
|
||||||
</SC.LinkExternal>
|
</SC.LinkExternal>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user