Link to member from transaction

This commit is contained in:
Tanner Collin 2020-02-01 07:39:24 +00:00
parent 5a6e7914c9
commit 4bde37cd8a

View File

@ -269,7 +269,15 @@ export function TransactionDetail(props) {
<Table.Body>
<Table.Row>
<Table.Cell>Member:</Table.Cell>
<Table.Cell>{transaction.member_name}</Table.Cell>
{isAdmin(user) && transaction.member_id ?
<Table.Cell>
<Link to={'/members/'+transaction.member_id}>
{transaction.member_name}
</Link>
</Table.Cell>
:
<Table.Cell>{transaction.member_name}</Table.Cell>
}
</Table.Row>
<Table.Row>
<Table.Cell>ID:</Table.Cell>