Skip to content

Commit

Permalink
ChannelTable: link peer's alias to amboss (#398)
Browse files Browse the repository at this point in the history
* link peer alias to amboss

- Import getNodeLink from helpers
- Set node link to peer's alias

* import helpers only once

Co-authored-by: Anthony Potdevin <[email protected]>
  • Loading branch information
blckbx and apotdevin authored Feb 1, 2022
1 parent b1a7dba commit 6937d15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/src/views/channels/channels/ChannelTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ArrowDown, ArrowUp, Check, Circle } from 'react-feather';
import { toast } from 'react-toastify';
import { BalanceBars } from '../../../components/balance';
import { ColorButton } from '../../../components/buttons/colorButton/ColorButton';
import { getChannelLink } from '../../../components/generic/helpers';
import { getChannelLink, getNodeLink } from '../../../components/generic/helpers';
import { DarkSubTitle } from '../../../components/generic/Styled';
import { Link } from '../../../components/link/Link';
import { LoadingCard } from '../../../components/loading/LoadingCard';
Expand Down Expand Up @@ -227,7 +227,9 @@ export const ChannelTable = () => {
Header: 'Peer',
accessor: 'undercaseAlias',
Cell: ({ row }: any) => (
<div style={{ whiteSpace: 'nowrap' }}>{row.original.alias}</div>
<div style={{ whiteSpace: 'nowrap' }}>
{getNodeLink(row.original.partner_public_key, row.original.alias)}
</div>
),
},
{
Expand Down

0 comments on commit 6937d15

Please sign in to comment.