editor component, viewer component

This commit is contained in:
Timur Ercan
2023-02-13 18:04:44 +01:00
parent 7e00ed7085
commit 45fdb8cce5
3 changed files with 78 additions and 67 deletions

View File

@ -13,7 +13,7 @@ type FieldPropsType = {
id: string;
recipient: string;
};
onPositionChangedHandler: any;
onPositionChanged: any;
};
export default function Field(props: FieldPropsType) {
@ -31,7 +31,7 @@ export default function Field(props: FieldPropsType) {
if (!position) return;
const { x, y } = position;
props.onPositionChangedHandler({ x, y }, props.field.id);
props.onPositionChanged({ x, y }, props.field.id);
};
return (