Start to build attach multiple entries dialog

This commit is contained in:
2025-05-14 21:57:39 +02:00
parent cc512e648c
commit 91e5d8af31
3 changed files with 108 additions and 1 deletions

View File

@@ -29,7 +29,9 @@ export function SelectAccountDialog(p: {
}): React.ReactElement {
const accounts = useAccounts();
const [choice, setChoice] = React.useState<Account | null>(null);
const [choice, setChoice] = React.useState<Account | null>(
accounts.list.default
);
const submit = () => {
if (choice) p.onSelected(choice);