Fix ESLint issues

This commit is contained in:
2025-05-14 22:04:34 +02:00
parent 91e5d8af31
commit 5aa954dca2
10 changed files with 46 additions and 39 deletions

View File

@@ -36,7 +36,7 @@ export function MovementWidget(p: { movement: Movement }): React.ReactElement {
height: "100%",
}}
>
{p.movement!.amount > 0 ? (
{p.movement.amount > 0 ? (
<CallReceivedIcon color="success" />
) : (
<CallMadeIcon color="error" />
@@ -51,15 +51,15 @@ export function MovementWidget(p: { movement: Movement }): React.ReactElement {
}}
>
<span style={{ height: "1em", lineHeight: 1 }}>
{p.movement?.label}
{p.movement.label}
</span>
<span style={{ display: "flex", alignItems: "center", lineHeight: 1 }}>
<AmountWidget amount={p.movement!.amount} />
<AmountWidget amount={p.movement.amount} />
<span style={{ width: "0.5em" }} />
&bull;
<span style={{ width: "0.5em" }} />
<AccountIconWidget account={accounts.get(p.movement!.account_id)!} />
{accounts.get(p.movement!.account_id)?.name}
<AccountIconWidget account={accounts.get(p.movement.account_id)!} />
{accounts.get(p.movement.account_id)?.name}
<span style={{ width: "0.5em" }} />
&bull; <span style={{ width: "0.5em" }} />
{fmtDateFromTime(p.movement.time)}