Implemented Profile component

This commit is contained in:
Philipp Czora
2018-11-05 16:03:54 +01:00
parent ef23178fad
commit 521f3dd9e9
7 changed files with 115 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
// @flow
import type { Me } from "@scm-manager/ui-components";
import type { Me } from "@scm-manager/ui-types";
import * as types from "./types";
import { apiClient, UNAUTHORIZED_ERROR } from "@scm-manager/ui-components";
@@ -136,7 +136,11 @@ const callFetchMe = (link: string): Promise<Me> => {
return response.json();
})
.then(json => {
return { name: json.name, displayName: json.displayName };
return {
name: json.name,
displayName: json.displayName,
mail: json.mail
};
});
};