mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
improve readability
This commit is contained in:
@@ -199,11 +199,8 @@ export default function SitesTable({ sites, orgId }: SitesTableProps) {
|
|||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
sortingFn: (rowA, rowB) => {
|
sortingFn: (rowA, rowB) =>
|
||||||
const a = parseDataSize(rowA.original.mbIn);
|
parseDataSize(rowA.original.mbIn) - parseDataSize(rowB.original.mbIn)
|
||||||
const b = parseDataSize(rowB.original.mbIn);
|
|
||||||
return a > b ? 1 : a < b ? -1 : 0;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "mbOut",
|
accessorKey: "mbOut",
|
||||||
@@ -220,11 +217,8 @@ export default function SitesTable({ sites, orgId }: SitesTableProps) {
|
|||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
sortingFn: (rowA, rowB) => {
|
sortingFn: (rowA, rowB) =>
|
||||||
const a = parseDataSize(rowA.original.mbOut);
|
parseDataSize(rowA.original.mbOut) - parseDataSize(rowB.original.mbOut),
|
||||||
const b = parseDataSize(rowB.original.mbOut);
|
|
||||||
return a > b ? 1 : a < b ? -1 : 0;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "type",
|
accessorKey: "type",
|
||||||
|
|||||||
Reference in New Issue
Block a user