remove changes to onVerify

This commit is contained in:
Ed Chalstrey 2022-05-27 11:22:42 +01:00
parent 1d9b3bef13
commit 30774e2a24
4 changed files with 7 additions and 8 deletions

View File

@ -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<VerificationProps, any> {
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);
}
}

View File

@ -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, value: any) => void;
onVerify: (slug: string, verify: boolean, x: number, y: number) => void;
user_verified: boolean;
user_verified_as: string;
verified_count: number;
allow_verify: boolean;
onVerify_upper: (slug: string, verify: boolean, x: number, y: number, value: any) => void;
onVerify_upper: (slug: string, verify: boolean, x: number, y: number) => 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, value: any) => void;
onVerify_lower: (slug: string, verify: boolean, x: number, y: number) => void;
user_verified_lower: boolean;
user_verified_as_lower: string;
verified_count_lower: number;

View File

@ -214,7 +214,7 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => 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];

View File

@ -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;