Skip to content

Commit

Permalink
Make transaction list sortable by cleared status
Browse files Browse the repository at this point in the history
  • Loading branch information
jaarasys-henria committed Nov 30, 2023
1 parent 5d61dfc commit cef018b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,20 @@ const TransactionHeader = memo(
}
/>
{showBalance && <Cell value="Balance" width={88} textAlign="right" />}
{showCleared && <Field width={23} truncate={false} />}

{showCleared && (
<HeaderCell
value="✓"
width={28}
alignItems="center"
id="cleared"
icon={field === 'cleared' ? ascDesc : 'clickable'}
onClick={() =>
onSort('cleared', selectAscDesc(field, ascDesc, 'cleared', 'asc'))
}
/>
)}

<Cell value="" width={5 + scrollWidth ?? 0} />
</Row>
);
Expand Down Expand Up @@ -437,9 +450,9 @@ function StatusCell({
return (
<Cell
name="cleared"
width={23}
width={28}
focused={focused}
style={{ padding: 1 }}
style={{ alignItems: 'center' }}
plain
>
<CellButton
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1994.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [jaarasys-henria]
---

Make transaction list sortable by cleared status

0 comments on commit cef018b

Please sign in to comment.