1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

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() {
@ -9,4 +8,4 @@ export function BrandPill() {
<span className="font-semibold text-white">Movie Web</span>
</div>
)
}
}

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>
)