Merge branch 'develop' of gitlab.com:empatnusabangsa/ppob/ppob-frontend into develop
This commit is contained in:
commit
6ce6d67260
|
@ -61,6 +61,18 @@ export const Profile = observer(() => {
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Text strong>Name</Text>
|
<Text strong>Name</Text>
|
||||||
</Col>
|
</Col>
|
||||||
|
<Col span={12}>
|
||||||
|
<Text>{store.authentication.profileData?.userDetail?.name}</Text>
|
||||||
|
</Col>
|
||||||
|
<Col span={12}>
|
||||||
|
<Text strong>Phone Number</Text>
|
||||||
|
</Col>
|
||||||
|
<Col span={12}>
|
||||||
|
<Text>{store.authentication.profileData?.userDetail?.phone_number}</Text>
|
||||||
|
</Col>
|
||||||
|
<Col span={12}>
|
||||||
|
<Text strong>Username</Text>
|
||||||
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Text>{store.authentication.profileData?.username}</Text>
|
<Text>{store.authentication.profileData?.username}</Text>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
import {action, observable} from "mobx";
|
import {action, makeAutoObservable, observable} from "mobx";
|
||||||
import {http} from "../utils/http";
|
import {http} from "../utils/http";
|
||||||
|
|
||||||
export class User {
|
export class User {
|
||||||
@observable data = [];
|
@observable data = [];
|
||||||
|
|
||||||
|
constructor(ctx) {
|
||||||
|
this.ctx = ctx;
|
||||||
|
makeAutoObservable(this);
|
||||||
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
async getData() {
|
async getData() {
|
||||||
this.data = (await http.get('/user')).body.data;
|
this.data = (await http.get('/user')).body.data;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user