11import T from 'prop-types'
22import Table from '../../../components/tables/table'
33import { useState } from 'react'
4+ import join from 'url-join'
5+
46import Pagination from '../../../components/pagination'
57import { serverRuntimeConfig } from '../../../../next.config.js'
68import * as R from 'ramda'
79import SearchInput from '../../../components/tables/search-input'
810import Button from '../../../components/button'
11+ const URL = process . env . APP_URL
912const { DEFAULT_PAGE_SIZE } = serverRuntimeConfig
1013
1114function MembersTable ( { rows : allRows , onRowClick } ) {
@@ -21,38 +24,74 @@ function MembersTable({ rows: allRows, onRowClick }) {
2124 { key : 'id' , sortable : true } ,
2225 { key : 'role' , sortable : true } ,
2326 {
24- key : '3rd party ' ,
27+ key : 'External Profiles ' ,
2528 render : ( { name } ) => (
2629 < >
2730 < Button
2831 onClick = { ( e ) => {
2932 e . stopPropagation ( )
3033 window . open (
3134 `https://www.openstreetmap.org/user/${ name } ` ,
32- '_blank'
35+ '_blank' ,
36+ 'noreferrer'
3337 )
3438 } }
39+ flat
40+ size = 'small'
41+ className = 'unstyled small'
42+ title = 'View profile on OSM'
3543 >
36- OSM Profile
44+ < img
45+ src = { `${ join ( URL , `/static/osm_logo.png` ) } ` }
46+ alt = 'OSM Logo'
47+ width = '16'
48+ height = '16'
49+ />
50+ OSM
3751 </ Button >
3852 < Button
3953 onClick = { ( e ) => {
4054 e . stopPropagation ( )
41- window . open ( `https://hdyc.neis-one.org/?${ name } ` , '_blank' )
55+ window . open (
56+ `https://hdyc.neis-one.org/?${ name } ` ,
57+ '_blank' ,
58+ 'noreferrer'
59+ )
4260 } }
61+ flat
62+ size = 'small'
63+ className = 'unstyled small'
64+ title = 'View profile on HDYC'
4365 >
66+ < img
67+ src = { `${ join ( URL , `/static/neis-one-logo.png` ) } ` }
68+ alt = 'How Do You Contribute Logo'
69+ width = '16'
70+ height = '16'
71+ />
4472 HDYC
4573 </ Button >
4674 < Button
4775 onClick = { ( e ) => {
4876 e . stopPropagation ( )
4977 window . open (
5078 `https://osmcha.org/?filters={"users":[{"label":"${ name } ","value":"${ name } "}]}` ,
51- '_blank'
79+ '_blank' ,
80+ 'noreferrer'
5281 )
5382 } }
83+ flat
84+ size = 'small'
85+ className = 'unstyled small'
86+ title = 'View profile on OSMCha'
5487 >
55- OSM Profile
88+ < img
89+ src = { `${ join ( URL , `/static/icon-osmcha-logo.svg` ) } ` }
90+ alt = 'OSMCha Logo'
91+ width = '16'
92+ height = '16'
93+ />
94+ OSMCha
5695 </ Button >
5796 </ >
5897 ) ,
0 commit comments