Can move entries between accounts

This commit is contained in:
2025-04-28 19:10:46 +02:00
parent f2a180e69f
commit e2e8f9ce5e
3 changed files with 61 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import { SelectAccountDialog } from "../../dialogs/SelectAccountDialog";
type DialogContext = (
title: string,
description: string,
description: string | React.ReactElement,
confirmButton?: string,
excludedAccounts?: Account[]
) => Promise<Account | undefined>;
@ -15,7 +15,9 @@ export function ChooseAccountDialogProvider(
p: React.PropsWithChildren
): React.ReactElement {
const [title, setTitle] = React.useState("");
const [description, setDescription] = React.useState("");
const [description, setDescription] = React.useState<
string | React.ReactElement
>("");
const [confirmButton, setConfirmButton] = React.useState<
string | undefined
>();