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({
let recurring = schedule && schedule._date && !!schedule._date.frequency;
return schedule ? (
<Button
type="bare"
style={buttonStyle}
onClick={e => {
e.stopPropagation();
onNavigateToSchedule(scheduleId);
}}
>
{recurring ? (
<ArrowsSynchronize style={scheduleIconStyle} />
) : (
<CalendarIcon style={scheduleIconStyle} />
return (
<>
{schedule && (
<Button
type="bare"
style={buttonStyle}
onClick={e => {
e.stopPropagation();
onNavigateToSchedule(scheduleId);
}}
>
{recurring ? (
<ArrowsSynchronize style={scheduleIconStyle} />
) : (
<CalendarIcon style={scheduleIconStyle} />
)}
</Button>
)}
</Button>
) : transferAccount ? (
<Button
type="bare"
style={buttonStyle}
onClick={e => {
e.stopPropagation();
if (!isTemporaryId(transaction.id)) {
onNavigateToTransferAccount(transferAccount.id);
}
}}
>
{(transaction._inverse ? -1 : 1) * transaction.amount > 0 ? (
<LeftArrow2 style={transferIconStyle} />
) : (
<RightArrow2 style={transferIconStyle} />
{transferAccount && (
<Button
type="bare"
style={buttonStyle}
onClick={e => {
e.stopPropagation();
if (!isTemporaryId(transaction.id)) {
onNavigateToTransferAccount(transferAccount.id);
}
}}
>
{(transaction._inverse ? -1 : 1) * transaction.amount > 0 ? (
<LeftArrow2 style={transferIconStyle} />
) : (
<RightArrow2 style={transferIconStyle} />
)}
</Button>
)}
</Button>
) : null;
</>
);
}
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