mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08:00
place optional parameters of functions at the end(#104)
This commit is contained in:
@@ -265,7 +265,7 @@ function EditPopoverContent({ data }) {
|
||||
block
|
||||
onClick={() => {
|
||||
Toast.success(`Area deleted!`);
|
||||
deleteArea(data.id, true);
|
||||
deleteArea(data.id);
|
||||
}}
|
||||
>
|
||||
Delete
|
||||
|
||||
@@ -375,7 +375,7 @@ export default function Canvas() {
|
||||
delete newRelationship.startY;
|
||||
delete newRelationship.endX;
|
||||
delete newRelationship.endY;
|
||||
addRelationship(newRelationship, true);
|
||||
addRelationship(newRelationship);
|
||||
};
|
||||
|
||||
const handleMouseWheel = (e) => {
|
||||
|
||||
@@ -251,7 +251,7 @@ export default function Note({ data, onMouseDown }) {
|
||||
block
|
||||
onClick={() => {
|
||||
Toast.success(`Note deleted!`);
|
||||
deleteNote(data.id, true);
|
||||
deleteNote(data.id);
|
||||
}}
|
||||
>
|
||||
Delete
|
||||
|
||||
Reference in New Issue
Block a user