mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-30 16:17:41 +01:00
remove compile warnings
This commit is contained in:
parent
f6493f9800
commit
361e350ddf
3 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,7 @@ export function Link(props: LinkProps) {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isExternal)
|
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)
|
else if (isInternal)
|
||||||
return (
|
return (
|
||||||
<LinkRouter to={(props as ILinkPropsInternal).to}>{content}</LinkRouter>
|
<LinkRouter to={(props as ILinkPropsInternal).to}>{content}</LinkRouter>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { Icon, Icons } from 'components/Icon'
|
import { Icon, Icons } from 'components/Icon'
|
||||||
import { ReactNode } from 'react'
|
|
||||||
|
|
||||||
export function BrandPill() {
|
export function BrandPill() {
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ export function Navigation() {
|
||||||
<BrandPill />
|
<BrandPill />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<a href={DISCORD_LINK} target="_blank" className="text-2xl text-white"><IconPatch icon={Icons.DISCORD} 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" className="text-2xl text-white"><IconPatch icon={Icons.GITHUB} clickable/></a>
|
<a href={GITHUB_LINK} target="_blank" rel="noreferrer" className="text-2xl text-white"><IconPatch icon={Icons.GITHUB} clickable/></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue