From ed5cd0b9fae1ecbc9ff0d47a69e51af650a9422d Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 26 May 2022 14:35:24 +0100 Subject: [PATCH] remove changes related to Current Use verification button --- app/src/frontend/building/data-components/verification.tsx | 5 ++--- .../frontend/building/data-components/year-data-entry.tsx | 2 +- app/src/frontend/building/data-container.tsx | 2 +- .../building/data-containers/category-view-props.ts | 2 +- app/src/frontend/config/data-fields-config.ts | 6 +----- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/src/frontend/building/data-components/verification.tsx b/app/src/frontend/building/data-components/verification.tsx index f0591cce..009a95f1 100644 --- a/app/src/frontend/building/data-components/verification.tsx +++ b/app/src/frontend/building/data-components/verification.tsx @@ -5,7 +5,7 @@ import './verification.css'; interface VerificationProps { slug: string; - onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void; + onVerify: (slug: string, verify: boolean, x: number, y: number) => void; user_verified: boolean; user_verified_as: string; verified_count: number; @@ -24,8 +24,7 @@ class Verification extends Component { e.preventDefault(); const x = e.clientX / document.body.clientWidth; const y = e.clientY / document.body.clientHeight; - const value = null; - this.props.onVerify(this.props.slug, verify, x, y, value); + this.props.onVerify(this.props.slug, verify, x, y); } } 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 dfc93cb3..af0d0749 100644 --- a/app/src/frontend/building/data-components/year-data-entry.tsx +++ b/app/src/frontend/building/data-components/year-data-entry.tsx @@ -14,7 +14,7 @@ interface YearDataEntryProps { mode?: 'view' | 'edit' | 'multi-edit'; onChange?: (key: string, value: any) => void; - onVerify: (slug: string, verify: boolean, x: number, y: number, value: any) => void; + onVerify: (slug: string, verify: boolean, x: number, y: number) => void; user_verified: boolean; user_verified_as: string; verified_count: number; diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 2df3c222..fb886d7a 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -214,7 +214,7 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine this.doSubmit(edits); } - async handleVerify(slug: string, verify: boolean, x: number, y: number, value: any) { + async handleVerify(slug: string, verify: boolean, x: number, y: number) { const verifyPatch = {}; if (verify) { verifyPatch[slug] = this.props.building[slug]; 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 d6188864..27d510f6 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, value: any) => void; + onVerify: (slug: string, verify: boolean, x: number, y: number) => void; /* Special handler for adding and immediately saving a new item of an array-like attribute */ onSaveAdd: (slug: string, newItem: any) => void; diff --git a/app/src/frontend/config/data-fields-config.ts b/app/src/frontend/config/data-fields-config.ts index 95a46238..f808f000 100644 --- a/app/src/frontend/config/data-fields-config.ts +++ b/app/src/frontend/config/data-fields-config.ts @@ -220,11 +220,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ tooltip: "URL for current land use reference", example: ["", "", ""], }, - current_landuse_verified: { - category: Category.LandUse, - title: 'Has this land use been manually verified?', - example: true, - }, + building_attachment_form: { category: Category.Type, title: "Adjacency/configuration",