Skip to content
Snippets Groups Projects
Unverified Commit 2ef0fc94 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: show all available transaction icons (#1508)

parent ba6eb26e
No related branches found
No related tags found
No related merge requests found
...@@ -629,39 +629,44 @@ function PayeeIcons({ ...@@ -629,39 +629,44 @@ function PayeeIcons({
let recurring = schedule && schedule._date && !!schedule._date.frequency; let recurring = schedule && schedule._date && !!schedule._date.frequency;
return schedule ? ( return (
<Button <>
type="bare" {schedule && (
style={buttonStyle} <Button
onClick={e => { type="bare"
e.stopPropagation(); style={buttonStyle}
onNavigateToSchedule(scheduleId); onClick={e => {
}} e.stopPropagation();
> onNavigateToSchedule(scheduleId);
{recurring ? ( }}
<ArrowsSynchronize style={scheduleIconStyle} /> >
) : ( {recurring ? (
<CalendarIcon style={scheduleIconStyle} /> <ArrowsSynchronize style={scheduleIconStyle} />
) : (
<CalendarIcon style={scheduleIconStyle} />
)}
</Button>
)} )}
</Button> {transferAccount && (
) : transferAccount ? ( <Button
<Button type="bare"
type="bare" style={buttonStyle}
style={buttonStyle} onClick={e => {
onClick={e => { e.stopPropagation();
e.stopPropagation(); if (!isTemporaryId(transaction.id)) {
if (!isTemporaryId(transaction.id)) { onNavigateToTransferAccount(transferAccount.id);
onNavigateToTransferAccount(transferAccount.id); }
} }}
}} >
> {(transaction._inverse ? -1 : 1) * transaction.amount > 0 ? (
{(transaction._inverse ? -1 : 1) * transaction.amount > 0 ? ( <LeftArrow2 style={transferIconStyle} />
<LeftArrow2 style={transferIconStyle} /> ) : (
) : ( <RightArrow2 style={transferIconStyle} />
<RightArrow2 style={transferIconStyle} /> )}
</Button>
)} )}
</Button> </>
) : null; );
} }
const Transaction = memo(function Transaction(props) { const Transaction = memo(function Transaction(props) {
......
---
category: Bugfix
authors: [MatissJanis]
---
Show all available transaction icons - transfer & schedule
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment