File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/shared/components/LeaderboardAvatar Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11// TODO: All uses of this component MUST be replaced by Avatar component!
22
3+ import config from 'utils/config' ;
34import React , { Component } from 'react' ;
45import PT from 'prop-types' ;
56import './style.scss' ;
@@ -25,9 +26,9 @@ class LeaderboardAvatar extends Component {
2526 }
2627
2728 render ( ) {
28- const { domain , openNewTab, url } = this . props ;
29+ const { openNewTab, url } = this . props ;
2930 const { member } = this . state ;
30- const targetURL = url || `// ${ domain } /members/${ member . handle } ` ;
31+ const targetURL = url || `${ config . URL . BASE } /members/${ member . handle } ` ;
3132 return (
3233 < a
3334 href = { targetURL }
@@ -50,14 +51,12 @@ class LeaderboardAvatar extends Component {
5051}
5152
5253LeaderboardAvatar . defaultProps = {
53- domain : process . env . domain ,
5454 member : { } ,
5555 openNewTab : false ,
5656 url : '' ,
5757} ;
5858
5959LeaderboardAvatar . propTypes = {
60- domain : PT . string ,
6160 member : PT . shape ( { } ) ,
6261 openNewTab : PT . bool ,
6362 url : PT . string ,
You can’t perform that action at this time.
0 commit comments