place optional parameters of functions at the end(#104)

This commit is contained in:
liao文禧
2024-05-14 11:22:13 +08:00
parent 9de091c990
commit a33b68bfd0
14 changed files with 32 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ export default function AreasContextProvider({ children }) {
const { selectedElement, setSelectedElement } = useSelect();
const { setUndoStack, setRedoStack } = useUndoRedo();
const addArea = (addToHistory = true, data) => {
const addArea = (data, addToHistory = true) => {
if (data) {
setAreas((prev) => {
const temp = prev.slice();