mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 14:16:06 +00:00
remove compile warnings
This commit is contained in:
parent
f6493f9800
commit
361e350ddf
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue