Browse Source

remove compile warnings

pull/60/head
mrjvs 3 years ago
parent
commit
361e350ddf
  1. 2
      src/components/Text/Link.tsx
  2. 3
      src/components/layout/BrandPill.tsx
  3. 4
      src/components/layout/Navigation.tsx

2
src/components/Text/Link.tsx

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

3
src/components/layout/BrandPill.tsx

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

4
src/components/layout/Navigation.tsx

@ -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…
Cancel
Save