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 29, 2023
1 parent 29f323e commit 0e1a3b8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,22 @@ const TransactionHeader = memo(
}
/>
{showBalance && <Cell value="Balance" width={88} textAlign="right" />}
{showCleared && <Field width={23} truncate={false} />}

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

<Cell value="" width={5 + scrollWidth ?? 0} />

</Row>
);
},
Expand Down Expand Up @@ -437,9 +451,11 @@ function StatusCell({
return (
<Cell
name="cleared"
width={23}
width={85}
focused={focused}
style={{ padding: 1 }}
style={{
alignItems: 'center'
}}
plain
>
<CellButton
Expand Down Expand Up @@ -1337,6 +1353,7 @@ const Transaction = memo(function Transaction(props) {
isChild={isChild}
onEdit={onEdit}
onUpdate={onUpdate}
width={85}
/>
)}

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 0e1a3b8

Please sign in to comment.