Skip to content

Commit

Permalink
fix(app-aco): use FormInvalidFields type
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Nov 18, 2024
1 parent a34f0ba commit f33c6e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeAutoObservable } from "mobx";

import { Filter, FilterDTO, FilterGroupDTO, FilterGroupFilterDTO, Operation } from "../domain";
import { FormInvalidFields } from "@webiny/form";

export interface QueryBuilderDrawerPresenterInterface {
load(filter: FilterDTO): void;
Expand All @@ -18,7 +18,7 @@ export interface QueryBuilderDrawerPresenterInterface {
export interface QueryBuilderViewModel {
name: string;
description: string;
invalidFields: Record<string, { isValid: boolean; message: string }>;
invalidFields: FormInvalidFields;
invalidMessage: string;
data: QueryBuilderFormData;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { makeAutoObservable } from "mobx";

import { Filter, FilterDTO } from "../domain";
import { FormInvalidFields } from "@webiny/form";

export interface QuerySaverDialogPresenterInterface {
load(filter: FilterDTO): void;
Expand All @@ -25,7 +26,7 @@ export interface QuerySaverDialogFormData {

export interface QuerySaverDialogViewModel {
filter: FilterDTO | undefined;
invalidFields: Record<string, { isValid: boolean; message: string }>;
invalidFields: FormInvalidFields;
}

export class QuerySaverDialogPresenter implements QuerySaverDialogPresenterInterface {
Expand Down

0 comments on commit f33c6e1

Please sign in to comment.