[feature] Move + alias account via settings panel (#2519)

* [feature] Move + alias account via settings panel

* lint

* type a bit more diligently
This commit is contained in:
tobi
2024-01-16 18:28:56 +01:00
committed by GitHub
parent c36f9ac37b
commit 486585890d
12 changed files with 476 additions and 57 deletions

View File

@ -22,7 +22,12 @@ import { FormInputHook, HookedForm } from "./types";
export default function getFormMutations(
form: HookedForm,
{ changedOnly }: { changedOnly: boolean },
) {
): {
updatedFields: FormInputHook<any>[];
mutationData: {
[k: string]: any;
};
} {
const updatedFields: FormInputHook[] = [];
const mutationData: Array<[string, any]> = [];
@ -34,7 +39,7 @@ export default function getFormMutations(
}
if ("selectedValues" in field) {
// FieldArrayInputHook.
// (Field)ArrayInputHook.
const selected = field.selectedValues();
if (!changedOnly || selected.length > 0) {
updatedFields.push(field);