Created select account input

This commit is contained in:
2025-05-12 21:40:48 +02:00
parent c54584550f
commit 3772dce01c
8 changed files with 86 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import CallReceivedIcon from "@mui/icons-material/CallReceived";
import React from "react";
import { Movement, MovementApi } from "../api/MovementsApi";
import { useAccounts } from "../hooks/AccountsListProvider";
import { AccountWidget } from "./AccountWidget";
import { AccountIconWidget } from "./AccountIconWidget";
import { AmountWidget } from "./AmountWidget";
import { AsyncWidget } from "./AsyncWidget";
@@ -53,7 +53,9 @@ export function MovementWidget(p: { id: number }): React.ReactElement {
<span style={{ width: "0.5em" }} />
&bull;
<span style={{ width: "0.5em" }} />
<AccountWidget account={accounts.get(movement!.account_id)!} />
<AccountIconWidget
account={accounts.get(movement!.account_id)!}
/>
{accounts.get(movement!.account_id)?.name}
</span>
</span>