@@ -15,18 +15,18 @@ const OrganizationsList = ({ organizations }) => {
15
15
< i className = "building outline icon" aria-hidden = "true" />
16
16
{ organizations [ 0 ] . id ? (
17
17
< a
18
- href = { `https://ror.org/ ${ organizations [ 0 ] . id } ` }
19
- aria-label = { `${ organizations [ 0 ] . name } 's ROR profile` }
20
- title = { `${ organizations [ 0 ] . name } 's ROR profile` }
18
+ href = { organizations [ 0 ] . url }
19
+ aria-label = { `${ organizations [ 0 ] . name } 's ${ organizations [ 0 ] . label } profile` }
20
+ title = { `${ organizations [ 0 ] . name } 's ${ organizations [ 0 ] . label } profile` }
21
21
target = "_blank"
22
22
rel = "noreferrer"
23
23
>
24
24
{ organizations [ 0 ] . name }
25
25
< span > </ span >
26
26
< img
27
27
className = "inline-id-icon"
28
- src = "/static/images/ror-icon.svg"
29
- alt = { `${ organizations [ 0 ] . name } 's ROR profile` }
28
+ src = { organizations [ 0 ] . icon }
29
+ alt = { `${ organizations [ 0 ] . name } 's ${ organizations [ 0 ] . label } profile` }
30
30
/>
31
31
</ a >
32
32
) : (
@@ -50,18 +50,18 @@ const OrganizationsList = ({ organizations }) => {
50
50
< div key = { org . id || org . name } className = "inline-computer mt-5" >
51
51
{ org . id ? (
52
52
< a
53
- href = { `https://ror. org/ ${ org . id } ` }
54
- aria-label = { `${ org . name } 's ROR profile` }
55
- title = { `${ org . name } 's ROR profile` }
53
+ href = { org . url }
54
+ aria-label = { `${ org . name } 's ${ org . label } profile` }
55
+ title = { `${ org . name } 's ${ org . label } profile` }
56
56
target = "_blank"
57
57
rel = "noreferrer"
58
58
>
59
59
{ org . name }
60
60
< span > </ span >
61
61
< img
62
62
className = "inline-id-icon"
63
- src = "/static/images/ror-icon.svg"
64
- alt = { `${ organizations [ 0 ] . name } 's ROR profile` }
63
+ src = { org . icon }
64
+ alt = { `${ org . name } 's ${ org . label } profile` }
65
65
/>
66
66
</ a >
67
67
) : (
@@ -89,6 +89,9 @@ OrganizationsList.propTypes = {
89
89
PropTypes . shape ( {
90
90
id : PropTypes . string ,
91
91
name : PropTypes . string . isRequired ,
92
+ label : PropTypes . string ,
93
+ icon : PropTypes . string ,
94
+ url : PropTypes . string ,
92
95
} )
93
96
) . isRequired ,
94
97
} ;
0 commit comments