diff --git a/samples/react-organisationchart/package.json b/samples/react-organisationchart/package.json index 105cc9ca6..215cc0f6b 100644 --- a/samples/react-organisationchart/package.json +++ b/samples/react-organisationchart/package.json @@ -6,18 +6,18 @@ "node": ">=0.10.0" }, "dependencies": { - "@microsoft/sp-client-base": "~0.2.1", - "@microsoft/sp-client-preview": "~0.3.0", - "office-ui-fabric-react": "0.36.0", + "@microsoft/sp-client-base": "~0.4.0", + "@microsoft/sp-client-preview": "~0.5.0", + "office-ui-fabric-react": "0.52.0", "react": "0.14.8", "react-dom": "0.14.8" }, "devDependencies": { - "@microsoft/sp-build-web": "~0.5.0", - "@microsoft/sp-module-interfaces": "~0.2.0", - "@microsoft/sp-webpart-workbench": "~0.3.0", + "@microsoft/sp-build-web": "~0.7.0", + "@microsoft/sp-module-interfaces": "~0.4.0", + "@microsoft/sp-webpart-workbench": "~0.5.0", "gulp": "~3.9.1", - "office-ui-fabric": "2.6.1" + "office-ui-fabric": "2.6.2" }, "scripts": { "build": "gulp bundle", diff --git a/samples/react-organisationchart/src/webparts/organisationChart/IOrganisationChartWebPartProps.ts b/samples/react-organisationchart/src/webparts/organisationChart/IOrganisationChartWebPartProps.ts index 3bd6b81e6..40d0ad0bb 100644 --- a/samples/react-organisationchart/src/webparts/organisationChart/IOrganisationChartWebPartProps.ts +++ b/samples/react-organisationchart/src/webparts/organisationChart/IOrganisationChartWebPartProps.ts @@ -1,5 +1,3 @@ -import { ServiceScope, EnvironmentType } from '@microsoft/sp-client-base'; - export interface IOrganisationChartWebPartProps { description: string; } diff --git a/samples/react-organisationchart/src/webparts/organisationChart/mocks/MockUserProfileService.ts b/samples/react-organisationchart/src/webparts/organisationChart/mocks/MockUserProfileService.ts index 2bd90d900..4d20cbea8 100644 --- a/samples/react-organisationchart/src/webparts/organisationChart/mocks/MockUserProfileService.ts +++ b/samples/react-organisationchart/src/webparts/organisationChart/mocks/MockUserProfileService.ts @@ -11,7 +11,7 @@ export class MockUserProfileService implements IUserProfileService { public getPropertiesForCurrentUser(): Promise { return new Promise((resolve, reject) => { - const user: IPerson = { Title: "Consultant", DisplayName: "Adam Jones", PictureUrl: "http://dev.office.com/Modules/DevOffice.Fabric/Fabric/components/persona/Persona.Person2.png" }; + const user: IPerson = { Title: "Consultant", DisplayName: "Adam Jones", PictureUrl: "https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-react/master/images/persona-male.png" }; resolve(user); }); } @@ -20,8 +20,8 @@ export class MockUserProfileService implements IUserProfileService { return new Promise((resolve, reject) => { const users: IPerson[] = []; - users.push({ Title: "Manager", DisplayName: "Grant Steel", PictureUrl: "http://dev.office.com/Modules/DevOffice.Fabric/Fabric/components/persona/Persona.Person2.png" }); - users.push({ Title: "Head of Management", DisplayName: "Marcel Grose", PictureUrl: "http://dev.office.com/Modules/DevOffice.Fabric/Fabric/components/persona/Persona.Person2.png" }); + users.push({ Title: "Manager", DisplayName: "Grant Steel", PictureUrl: "https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-react/master/images/persona-male.png" }); + users.push({ Title: "Head of Management", DisplayName: "Marcel Grose", PictureUrl: "https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-react/master/images/persona-female.png" }); resolve(users); }); @@ -31,8 +31,8 @@ export class MockUserProfileService implements IUserProfileService { return new Promise((resolve, reject) => { const users: IPerson[] = []; - users.push({ Title: "Developer", DisplayName: "Russel Miller", PictureUrl: "http://dev.office.com/Modules/DevOffice.Fabric/Fabric/components/persona/Persona.Person2.png" }); - users.push({ Title: "IT Admin", DisplayName: "Robert Fischer", PictureUrl: "http://dev.office.com/Modules/DevOffice.Fabric/Fabric/components/persona/Persona.Person2.png" }); + users.push({ Title: "Developer", DisplayName: "Russel Miller", PictureUrl: "https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-react/master/images/persona-female.png" }); + users.push({ Title: "IT Admin", DisplayName: "Robert Fischer", PictureUrl: "https://raw.githubusercontent.com/OfficeDev/office-ui-fabric-react/master/images/persona-male.png" }); resolve(users); });