mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
swap send/recive to more logical order (#574)
* swap send/received for activity and columns. * swap send/received for activity and columns. v2
This commit is contained in:
parent
7b41848be8
commit
06f211edb7
1 changed files with 13 additions and 13 deletions
|
@ -251,13 +251,13 @@ export const ChannelTable = () => {
|
|||
activityBars: (
|
||||
<div style={{ minWidth: '180px' }}>
|
||||
<BalanceBars
|
||||
local={getPercent(c.sent, c.received)}
|
||||
remote={getPercent(c.received, c.sent)}
|
||||
local={getPercent(c.received, c.sent)}
|
||||
remote={getPercent(c.sent, c.received)}
|
||||
formatLocal={
|
||||
<Price amount={c.sent} breakNumber={true} noUnit={true} />
|
||||
<Price amount={c.received} breakNumber={true} noUnit={true} />
|
||||
}
|
||||
formatRemote={
|
||||
<Price amount={c.received} breakNumber={true} noUnit={true} />
|
||||
<Price amount={c.sent} breakNumber={true} noUnit={true} />
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
|
@ -442,15 +442,6 @@ export const ChannelTable = () => {
|
|||
{
|
||||
header: 'Activity',
|
||||
columns: [
|
||||
{
|
||||
header: 'Sent',
|
||||
accessorKey: 'sent',
|
||||
cell: ({ row }: any) => (
|
||||
<div style={{ whiteSpace: 'nowrap' }}>
|
||||
<Price amount={row.original.sent} />
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
header: 'Received',
|
||||
accessorKey: 'received',
|
||||
|
@ -460,6 +451,15 @@ export const ChannelTable = () => {
|
|||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
header: 'Sent',
|
||||
accessorKey: 'sent',
|
||||
cell: ({ row }: any) => (
|
||||
<div style={{ whiteSpace: 'nowrap' }}>
|
||||
<Price amount={row.original.sent} />
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
header: 'Percent',
|
||||
accessorKey: 'activityPercentText',
|
||||
|
|
Loading…
Add table
Reference in a new issue