chore: optional types added and cleaned files
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user