Skip to content

Commit

Permalink
fix: add a avatar color
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofan2406 committed Jul 7, 2021
1 parent e2a7055 commit 9f717d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Avatar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const Avatar = ({ color, givenName, tooltip, image, surname }) => (

Avatar.propTypes = {
/**
* PropTypes.oneOf(['blue', 'green', 'red', 'orange', 'cyan'])
* PropTypes.oneOf(['blue', 'green', 'red', 'orange', 'cyan', 'black'])
*/
color: PropTypes.oneOf(['blue', 'green', 'red', 'orange', 'cyan']),
color: PropTypes.oneOf(['blue', 'green', 'red', 'orange', 'cyan', 'black']),
givenName: PropTypes.string,
tooltip: PropTypes.string,
image: PropTypes.string,
Expand Down
4 changes: 4 additions & 0 deletions src/components/Avatar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ $diameter: 35px;
&-cyan {
background-color: $color-cyan;
}

&-black {
background-color: $color-gray-darker;
}
}

0 comments on commit 9f717d5

Please sign in to comment.