Skip to content

Commit 5aa7ebd

Browse files
committed
Add external profile buttons to org view
1 parent 82abd38 commit 5aa7ebd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/components/tables/users.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useState } from 'react'
55
import Pagination from '../pagination'
66
import qs from 'qs'
77
import SearchInput from './search-input'
8+
import ExternalProfileButton from '../external-profile-button'
89

910
function 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

Comments
 (0)