From 3b3fc12e93c8c9e97c35094d1f0df6643c81244b Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 16:05:55 +0100 Subject: [PATCH] update all calls to onVerify --- .../frontend/building/data-components/year-data-entry.tsx | 6 +++--- .../building/data-containers/category-view-props.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/frontend/building/data-components/year-data-entry.tsx b/app/src/frontend/building/data-components/year-data-entry.tsx index aea54267..dfc93cb3 100644 --- a/app/src/frontend/building/data-components/year-data-entry.tsx +++ b/app/src/frontend/building/data-components/year-data-entry.tsx @@ -14,19 +14,19 @@ interface YearDataEntryProps { mode?: 'view' | 'edit' | 'multi-edit'; onChange?: (key: string, value: any) => void; - onVerify: (slug: string, verify: boolean, x: number, y: number) => void; + onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void; user_verified: boolean; user_verified_as: string; verified_count: number; allow_verify: boolean; - onVerify_upper: (slug: string, verify: boolean, x: number, y: number) => void; + onVerify_upper: (slug: string, verify: boolean, x: number, y: number, value: any) => void; user_verified_upper: boolean; user_verified_as_upper: string; verified_count_upper: number; allow_verify_upper: boolean; - onVerify_lower: (slug: string, verify: boolean, x: number, y: number) => void; + onVerify_lower: (slug: string, verify: boolean, x: number, y: number, value: any) => void; user_verified_lower: boolean; user_verified_as_lower: string; verified_count_lower: number; diff --git a/app/src/frontend/building/data-containers/category-view-props.ts b/app/src/frontend/building/data-containers/category-view-props.ts index 27d510f6..d6188864 100644 --- a/app/src/frontend/building/data-containers/category-view-props.ts +++ b/app/src/frontend/building/data-containers/category-view-props.ts @@ -14,7 +14,7 @@ interface CategoryViewProps { edited: boolean; copy: CopyProps; onChange: (key: string, value: any) => void; - onVerify: (slug: string, verify: boolean, x: number, y: number) => void; + onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void; /* Special handler for adding and immediately saving a new item of an array-like attribute */ onSaveAdd: (slug: string, newItem: any) => void;