Start to build a dialog to create movements

This commit is contained in:
2025-05-13 23:08:11 +02:00
parent baca466209
commit b2f8a66c12
2 changed files with 116 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { MenuItem, Select, Typography } from "@mui/material";
import { MenuItem, Select, TextFieldVariants, Typography } from "@mui/material";
import { AccountIconWidget } from "../AccountIconWidget";
import { useAccounts } from "../../hooks/AccountsListProvider";
import { AmountWidget } from "../AmountWidget";
@ -8,6 +8,7 @@ export function AccountInput(p: {
onChange: (value: number) => void;
label?: string;
style?: React.CSSProperties;
variant?: TextFieldVariants;
}): React.ReactElement {
const accounts = useAccounts();
let current = p.value;
@ -23,6 +24,7 @@ export function AccountInput(p: {
onChange={(e) => p.onChange(Number(e.target.value))}
size="small"
style={p.style}
variant={p.variant}
>
{accounts.list.list.map((a) => (
<MenuItem value={a.id}>