refactor(react-tree-orgchart): remove whitespace

This commit is contained in:
Jake Stanger 2020-01-28 14:00:26 +00:00
parent 319029b7cf
commit 27878aa71f
1 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
import { WebPartContext } from "@microsoft/sp-webpart-base";
import { sp } from '@pnp/sp';
import { sp } from "@pnp/sp";
export default class SPServices {
constructor(private context: WebPartContext) {
@ -8,8 +8,8 @@ export default class SPServices {
});
}
public async getUserProperties(user:string) {
let currentUserProperties:any = await sp.profiles.getPropertiesFor(user);
public async getUserProperties(user: string) {
let currentUserProperties: any = await sp.profiles.getPropertiesFor(user);
console.log(currentUserProperties);
return currentUserProperties;
@ -19,12 +19,13 @@ export default class SPServices {
* async GetUserProfileProperty
* user:string
*/
public async getUserProfileProperty(user:string,property:string) {
let UserProperty:any = await sp.profiles.getUserProfilePropertyFor(user, property);
public async getUserProfileProperty(user: string, property: string) {
let UserProperty: any = await sp.profiles.getUserProfilePropertyFor(
user,
property
);
console.log(UserProperty);
return UserProperty;
}
}