Can delete a movement

This commit is contained in:
2025-04-22 12:14:50 +02:00
parent 68dfbfff2b
commit bff1c2d171
4 changed files with 83 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ import { AmountInput } from "./forms/AmountInput";
export function NewMovementWidget(p: {
account: Account;
onCreated: () => {};
onCreated: () => void;
}): React.ReactElement {
const snackbar = useSnackbar();
const alert = useAlert();
@@ -91,7 +91,7 @@ export function NewMovementWidget(p: {
type="text"
placeholder="Amount"
style={{ flex: 1, maxWidth: "110px" }}
value={amount}
value={amount ?? 0}
onValueChange={setAmount}
/>
<Tooltip title="Add new movement">