Skip to content

Commit 989493c

Browse files
elisenyangElise Yangshweaver-MSFT
authored
update to 1.3 and mgt-react (#481)
Co-authored-by: Elise Yang <[email protected]> Co-authored-by: Shane Weaver <[email protected]>
1 parent 01c97fa commit 989493c

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

samples/react-app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "react-app",
3-
"version": "0.1.0",
3+
"version": "1.3.0",
44
"private": true,
55
"dependencies": {
6-
"@microsoft/mgt": "0.1.0-preview.8",
6+
"@microsoft/mgt": "^1.3.0-preview.3",
7+
"@microsoft/mgt-react": "^1.3.0-preview.3",
78
"@webcomponents/webcomponentsjs": "2.2.10",
89
"react": "^16.8.5",
910
"react-app-polyfill": "1.0.1",

samples/react-app/src/App.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
import React, { Component } from 'react';
2-
import "@microsoft/mgt";
2+
import { Login, Agenda, Person} from '@microsoft/mgt-react';
3+
import { PersonViewType } from '@microsoft/mgt';
34

45
class App extends Component {
56
render() {
7+
8+
const personDetails = {
9+
displayName: 'Nikola Metulev'
10+
};
11+
612
return (
713
<div className="App">
8-
<mgt-login ref="loginComponent"></mgt-login>
9-
<mgt-agenda group-by-day></mgt-agenda>
14+
<Login loginCompleted={()=> console.log('login completed')}/>
15+
<Agenda groupByDay="true"/>
1016

1117

12-
<mgt-person show-name ref={el => el.personDetails = {displayName: 'Nikola Metulev'}}></mgt-person>
18+
<Person personDetails={personDetails} view={PersonViewType.oneline}/>
1319
</div>
1420
);
1521
}
16-
17-
componentDidMount() {
18-
this.refs.loginComponent.addEventListener('loginCompleted', e => {
19-
console.log('logincompleted');
20-
});
21-
}
2222
}
2323

2424
export default App;

0 commit comments

Comments
 (0)