chore: optional types added and cleaned files

This commit is contained in:
Marlon Johnson
2021-06-22 16:06:59 -07:00
parent c421191829
commit 9fb66b5509
4 changed files with 4 additions and 11 deletions

View File

@ -6,8 +6,8 @@ import { borderColorPicker } from '.';
import { useTranslation } from 'react-i18next';
interface AvatarRendererProps {
isDonating: boolean;
isTopContributor: boolean;
isDonating?: boolean;
isTopContributor?: boolean;
picture: unknown;
userName: string;
}

View File

@ -1,6 +1,6 @@
export default function borderColorPicker(
isDonating: boolean,
isTopContributor: boolean
isDonating: boolean | undefined,
isTopContributor: boolean | undefined
): string {
if (isDonating && isTopContributor) return 'purple-border';
else if (isTopContributor) return 'blue-border';

View File

@ -1,13 +1,6 @@
import React, { ReactNode } from 'react';
import { Link as GatsbyLink } from 'gatsby';
// const propTypes = {
// children: PropTypes.any,
// external: PropTypes.bool,
// sameTab: PropTypes.bool,
// to: PropTypes.string.isRequired
// };
interface LinkProps {
children?: ReactNode;
external?: boolean;