Skip to content

Commit

Permalink
api userdetail
Browse files Browse the repository at this point in the history
  • Loading branch information
XdithyX committed Dec 3, 2022
1 parent 6e8e93f commit 1c01d87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions src/components/Editprofileform/Editprofileform.js
Original file line number Diff line number Diff line change
@@ -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}) {

Expand All @@ -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();

}
Expand Down Expand Up @@ -41,7 +49,7 @@ function Editprofileform({actualname,setActualname,phno,setPhno,userimg,setUseri
</Form.Group><br/>

<Form.Group>
<h5>Linkedin</h5>
<h5>Phone number</h5>
<Form.Control
type="text"
placeholder="phone number"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Dashboard = () => {
</Modal.Title>
</Modal.Header>
<Modal.Body>
<Editprofileform />
<Editprofileform actualname={actualname} phno={phno} userimg={userimg}/>
</Modal.Body>
<Modal.Footer>
<Button variant="secondary" onClick={handleClose}>
Expand Down

0 comments on commit 1c01d87

Please sign in to comment.