feat(profile): Add Top Contributor badge feature (#38348)

Co-authored-by: Twaha Rahman <39026437+Twaha-Rahman@users.noreply.github.com>
Co-authored-by: Twaha Rahman <mahi6703890@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Ashraf Nazar
2020-11-16 08:19:45 +00:00
committed by GitHub
parent 53f40b7f12
commit 9831df18e0
8 changed files with 59 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
export default function borderColorPicker(isDonating, isTopContributor) {
if (isDonating && isTopContributor) return 'purple-border';
else if (isTopContributor) return 'green-border';
else if (isTopContributor) return 'blue-border';
else if (isDonating) return 'gold-border';
else return 'default-border';
}