Convert VectorAuthPage to modern code style
This commit is contained in:
parent
1ec9763566
commit
aea2b1ebc9
1 changed files with 6 additions and 10 deletions
|
@ -16,17 +16,13 @@ limitations under the License.
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const React = require('react');
|
import React from 'react';
|
||||||
import sdk from 'matrix-react-sdk/lib/index';
|
import sdk from 'matrix-react-sdk/lib/index';
|
||||||
|
|
||||||
module.exports = React.createClass({
|
export default class VectorAuthPage extends React.PureComponent {
|
||||||
displayName: 'VectorAuthPage',
|
static replaces = 'AuthPage'
|
||||||
|
|
||||||
statics: {
|
render() {
|
||||||
replaces: 'AuthPage',
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
|
||||||
const AuthFooter = sdk.getComponent('auth.AuthFooter');
|
const AuthFooter = sdk.getComponent('auth.AuthFooter');
|
||||||
|
|
||||||
const pageStyle = {
|
const pageStyle = {
|
||||||
|
@ -66,5 +62,5 @@ module.exports = React.createClass({
|
||||||
<AuthFooter />
|
<AuthFooter />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
|
Loading…
Reference in a new issue