remove compile warnings

This commit is contained in:
mrjvs 2022-02-25 22:03:12 +01:00
parent f6493f9800
commit 361e350ddf
3 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@ export function Link(props: LinkProps) {
);
if (isExternal)
return <a target={(props as ILinkPropsExternal).newTab ? "_blank" : undefined} rel="noopener" href={(props as ILinkPropsExternal).url}>{content}</a>;
return <a target={(props as ILinkPropsExternal).newTab ? "_blank" : undefined} rel="noreferrer" href={(props as ILinkPropsExternal).url}>{content}</a>;
else if (isInternal)
return (
<LinkRouter to={(props as ILinkPropsInternal).to}>{content}</LinkRouter>

View File

@ -1,5 +1,4 @@
import { Icon, Icons } from 'components/Icon'
import { ReactNode } from 'react'
export function BrandPill() {

View File

@ -10,8 +10,8 @@ export function Navigation() {
<BrandPill />
</div>
<div className="flex">
<a href={DISCORD_LINK} target="_blank" className="text-2xl text-white"><IconPatch icon={Icons.DISCORD} clickable/></a>
<a href={GITHUB_LINK} target="_blank" className="text-2xl text-white"><IconPatch icon={Icons.GITHUB} clickable/></a>
<a href={DISCORD_LINK} target="_blank" rel="noreferrer" className="text-2xl text-white"><IconPatch icon={Icons.DISCORD} clickable/></a>
<a href={GITHUB_LINK} target="_blank" rel="noreferrer" className="text-2xl text-white"><IconPatch icon={Icons.GITHUB} clickable/></a>
</div>
</div>
)