|
1 | 1 | import React from "react"; |
2 | 2 | import AuthService from "../services/auth.service"; |
| 3 | +import img from './images/profile.png' |
3 | 4 |
|
4 | 5 | const Profile = () => { |
5 | 6 | const currentUser = AuthService.getCurrentUser(); |
6 | 7 | return ( |
7 | | - <div className="container"> |
8 | | - <header className="jumbotron"> |
9 | | - |
10 | | - <center><h1>Profile</h1></center> |
11 | | - <h3> |
12 | | - <strong>UserName: </strong>{currentUser.username} |
13 | | - </h3> |
14 | | - </header> |
15 | | - |
16 | | - <header className="jumbotron"> |
17 | | - <p> |
18 | | - <strong>Token:</strong> {currentUser.accessToken.substring(0, 20)} ...{" "} |
19 | | - {currentUser.accessToken.substr(currentUser.accessToken.length - 20)} |
20 | | - </p> |
21 | | - <p> |
22 | | - <strong>Id:</strong> {currentUser.id} |
23 | | - </p> |
24 | | - <p> |
25 | | - <strong>Email:</strong> {currentUser.email} |
26 | | - </p> |
27 | | - <p> |
28 | | - <strong>Phone Number:</strong> +94 {currentUser.number} |
29 | | - </p> |
30 | | - <strong>Authorities:</strong> |
31 | | - <ul> |
32 | | - {currentUser.roles && |
33 | | - currentUser.roles.map((role, index) => <li key={index}>{role}</li>)} |
34 | | - </ul> |
35 | | - </header> |
| 8 | + <div className="container mt-4 shadow p-3 mb-5 bg-body rounded"> |
| 9 | + <div className="p-3 row"> |
| 10 | + <div className="col-md-6"> |
| 11 | + <img src={img} height="400px" alt="" className="mt-0 ml-5"/> |
| 12 | + </div> |
| 13 | + |
| 14 | + <div className="col-md-6"> |
| 15 | + <div className="container"> |
| 16 | + <div className="col-sm-12 col-md-9"> |
| 17 | + <p className="aboutus_titles"><br/><br/> |
| 18 | + <h1> Profile </h1> |
| 19 | + </p> |
| 20 | + <p className="con"> |
| 21 | + <p> |
| 22 | + <strong>Token:</strong> {currentUser.accessToken.substring(0, 20)} ...{" "} |
| 23 | + {currentUser.accessToken.substr(currentUser.accessToken.length - 20)} |
| 24 | + </p> |
| 25 | + <p> |
| 26 | + <strong>Id:</strong> {currentUser.id} |
| 27 | + </p> |
| 28 | + <p> |
| 29 | + <strong>Email:</strong> {currentUser.email} |
| 30 | + </p> |
| 31 | + <p> |
| 32 | + <strong>Phone Number:</strong> +94 {currentUser.number} |
| 33 | + </p> |
| 34 | + <strong>Authorities:</strong> |
| 35 | + <ul> |
| 36 | + {currentUser.roles && |
| 37 | + currentUser.roles.map((role, index) => <li key={index}>{role}</li>)} |
| 38 | + </ul> |
| 39 | + </p> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + </div> |
36 | 44 | </div> |
| 45 | + |
37 | 46 | ); |
38 | 47 | }; |
39 | 48 |
|
|
0 commit comments