Fix ESLint issues
This commit is contained in:
@@ -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" }} />
|
||||
•
|
||||
<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" }} />
|
||||
• <span style={{ width: "0.5em" }} />
|
||||
{fmtDateFromTime(p.movement.time)}
|
||||
|
Reference in New Issue
Block a user