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:
Yevhen Baidiuk 2023-11-05 15:36:04 +01:00 committed by GitHub
parent 7b41848be8
commit 06f211edb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',