refactor(client): border-color-picker to TypeScript

This commit is contained in:
Marlon Johnson
2021-06-21 13:57:24 -07:00
parent 7569a8d427
commit a38ff69aea
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -8,4 +8,4 @@ export { default as Link } from './link';
export { default as CurrentChallengeLink } from './current-challenge-link';
export { default as ImageLoader } from './image-loader';
export { default as AvatarRenderer } from './AvatarRenderer';
export { default as borderColorPicker } from './borderColorPicker';
export { default as borderColorPicker } from './border-color-picker';