Skip to content

Commit

Permalink
Chore: update avatar colors (#26153)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored Jul 7, 2022
1 parent 02d9dd9 commit b650cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
22 changes: 0 additions & 22 deletions apps/meteor/app/utils/lib/getAvatarColor.js

This file was deleted.

3 changes: 3 additions & 0 deletions apps/meteor/app/utils/lib/getAvatarColor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const colors = ['#158D65', '#7F1B9F', '#B68D00', '#E26D0E', '#10529E', '#6C727A'];

export const getAvatarColor = (name: string): string => colors[name.length % colors.length];

0 comments on commit b650cf7

Please sign in to comment.