From 1c01d87d40dc3f1a849a16388774bcc1b669db4f Mon Sep 17 00:00:00 2001
From: Adithya Ajith <4adhi007@gmail.com>
Date: Sat, 3 Dec 2022 13:04:43 +0530
Subject: [PATCH] api userdetail
---
src/components/Editprofileform/Editprofileform.js | 14 +++++++++++---
src/pages/Dashboard/Dashboard.js | 2 +-
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/components/Editprofileform/Editprofileform.js b/src/components/Editprofileform/Editprofileform.js
index 903a6e9..0e53043 100644
--- a/src/components/Editprofileform/Editprofileform.js
+++ b/src/components/Editprofileform/Editprofileform.js
@@ -1,6 +1,7 @@
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form';
-
+import axiosInstance from '../../utils/axios'
+import baseUrl from '../../utils/Urls';
function Editprofileform({actualname,setActualname,phno,setPhno,userimg,setUserimg}) {
@@ -9,7 +10,14 @@ function Editprofileform({actualname,setActualname,phno,setPhno,userimg,setUseri
const handleSubmit=(e)=>{
-
+ axiosInstance.post(`${baseUrl}/user-detail/`,{
+
+ "actual_name":actualname,
+ "phno":phno,
+ "user_image":userimg,
+ "user_foriegn":2
+ })
+
e.preventDefault();
}
@@ -41,7 +49,7 @@ function Editprofileform({actualname,setActualname,phno,setPhno,userimg,setUseri