@@ -5,6 +5,7 @@ import { useState } from 'react'
55import Pagination from '../pagination'
66import qs from 'qs'
77import SearchInput from './search-input'
8+ import ExternalProfileButton from '../external-profile-button'
89
910function UsersTable ( { type, orgId, onRowClick, isSearchable } ) {
1011 const [ page , setPage ] = useState ( 1 )
@@ -32,6 +33,16 @@ function UsersTable({ type, orgId, onRowClick, isSearchable }) {
3233 columns = [
3334 { key : 'name' , sortable : true } ,
3435 { key : 'id' , label : 'OSM ID' , sortable : true } ,
36+ {
37+ key : 'External Profiles' ,
38+ render : ( { name } ) => (
39+ < >
40+ < ExternalProfileButton type = 'osm-profile' userId = { name } />
41+ < ExternalProfileButton type = 'hdyc' userId = { name } />
42+ < ExternalProfileButton type = 'osmcha' userId = { name } />
43+ </ >
44+ ) ,
45+ } ,
3546 ]
3647 break
3748 case 'org-staff' :
@@ -41,6 +52,16 @@ function UsersTable({ type, orgId, onRowClick, isSearchable }) {
4152 { key : 'name' , sortable : true } ,
4253 { key : 'id' , label : 'OSM ID' , sortable : true } ,
4354 { key : 'type' , sortable : true } ,
55+ {
56+ key : 'External Profiles' ,
57+ render : ( { name } ) => (
58+ < >
59+ < ExternalProfileButton type = 'osm-profile' userId = { name } />
60+ < ExternalProfileButton type = 'hdyc' userId = { name } />
61+ < ExternalProfileButton type = 'osmcha' userId = { name } />
62+ </ >
63+ ) ,
64+ } ,
4465 ]
4566 break
4667 default :
0 commit comments