This repository was archived by the owner on Sep 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,11 @@ export default class DappIdenticon extends Component {
41
41
. toDataURL ( ) ;
42
42
}
43
43
44
- renderLink ( ) {
45
- /*
46
- return (
47
- <a href="{{link}}" class="dapp-identicon {{class}}" style="background-image: url('{{identiconData identity}}')" title={{i18nTextIcon}}>
48
- <img src="{{identiconDataPixel identity}}" class='identicon-pixel'>
49
- </a>
50
- )
51
- */
52
- }
53
-
54
44
render ( ) {
55
- if ( ! this . props . identity ) {
56
- return null ;
57
- }
45
+ const { identity } = this . props ;
58
46
59
- if ( this . props . link ) {
60
- return this . renderLink ( ) ;
47
+ if ( ! identity ) {
48
+ return null ;
61
49
}
62
50
63
51
// dapp class sizes: large, medium, small, tiny
@@ -66,11 +54,13 @@ export default class DappIdenticon extends Component {
66
54
className = { `dapp-identicon dapp-${ this . props . size } ` }
67
55
title = { i18n . t ( 'elements.identiconHelper' ) }
68
56
style = { {
69
- backgroundImage : `url('${ this . identiconData ( this . props . identity ) } ')`
57
+ backgroundImage : `url('${ this . identiconData (
58
+ identity . toLowerCase ( )
59
+ ) } ')`
70
60
} }
71
61
>
72
62
< img
73
- src = { this . identiconDataPixel ( this . props . identity . toLowerCase ( ) ) }
63
+ src = { this . identiconDataPixel ( identity . toLowerCase ( ) ) }
74
64
className = "identicon-pixel"
75
65
/>
76
66
</ span >
You can’t perform that action at this time.
0 commit comments