From 6e43a41b4729d1ed5e40df930a47c9d3abe3a064 Mon Sep 17 00:00:00 2001 From: farhantock Date: Wed, 28 Feb 2024 08:51:15 +0700 Subject: [PATCH] rename folder demo --- src/views/SimproV2/{Demo => DemoRequest}/DialogForm.js | 0 src/views/SimproV2/{Demo => DemoRequest}/index.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/views/SimproV2/{Demo => DemoRequest}/DialogForm.js (100%) rename src/views/SimproV2/{Demo => DemoRequest}/index.js (99%) diff --git a/src/views/SimproV2/Demo/DialogForm.js b/src/views/SimproV2/DemoRequest/DialogForm.js similarity index 100% rename from src/views/SimproV2/Demo/DialogForm.js rename to src/views/SimproV2/DemoRequest/DialogForm.js diff --git a/src/views/SimproV2/Demo/index.js b/src/views/SimproV2/DemoRequest/index.js similarity index 99% rename from src/views/SimproV2/Demo/index.js rename to src/views/SimproV2/DemoRequest/index.js index a3fc1fa..6ad5b0a 100644 --- a/src/views/SimproV2/Demo/index.js +++ b/src/views/SimproV2/DemoRequest/index.js @@ -202,7 +202,7 @@ const ProjectType = ({ params, ...props }) => { if (type === "save") { saveDemo(data); } else if (type === "edit") { - editMaterialR(data); + editDemo(data); } setDataEdit([]) setOpenDialog(false) @@ -221,7 +221,7 @@ const ProjectType = ({ params, ...props }) => { } } - const editMaterialR = async (data) => { + const editDemo = async (data) => { let urlEdit = DEMO_MANAGEMENT_EDIT(data.id) const formData = data const result = await axios.put(urlEdit, formData, HEADER)