From 1dedad70835e7e6362334f98e4a01b87a5186165 Mon Sep 17 00:00:00 2001 From: "ajat91.sudrajat" Date: Sat, 5 Feb 2022 00:26:07 +0700 Subject: [PATCH] Ganti Password --- src/component/PartnerComponent.js | 6 +++--- src/pages/Profile/Profile.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/component/PartnerComponent.js b/src/component/PartnerComponent.js index b4ea10f..f1f1cc1 100644 --- a/src/component/PartnerComponent.js +++ b/src/component/PartnerComponent.js @@ -329,10 +329,10 @@ export const PartnerComponent = observer((props) => { visible={store.partner.visibleModalPartner} title={ isChangePassword - ? "Change Member Password" + ? "Ganti Password Rekanan" : idData - ? "Edit Partner" - : "Create a new partner" + ? "Edit Rekanan" + : "Buat Rekanan Baru" } okText={idData ? "Edit" : "Create"} cancelText="Batal" diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index 763111f..647e901 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -283,7 +283,7 @@ export const Profile = observer(() => { const handleSubmit = async (id, data) => { try { modalLoader.setLoading(true); - const response = await store.membership.update(id, data); + const response = await store.membership.changePassword(id, data); console.log(id,"id yang masuk") console.log(data,"data yang masuk") message.success(response?.body?.message || "Berhasil Ganti Password"); @@ -778,7 +778,7 @@ export const Profile = observer(() => {