mirror of https://github.com/vector-im/riot-web
discard create-react-class, no point using it here. use React.FC
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/10480/head
parent
06e7a48aaf
commit
da9f1d1fa3
|
@ -68,7 +68,6 @@
|
||||||
"babel-runtime": "^6.26.0",
|
"babel-runtime": "^6.26.0",
|
||||||
"bluebird": "^3.5.2",
|
"bluebird": "^3.5.2",
|
||||||
"browser-request": "^0.3.3",
|
"browser-request": "^0.3.3",
|
||||||
"create-react-class": "^15.6.0",
|
|
||||||
"draft-js": "^0.11.0-alpha",
|
"draft-js": "^0.11.0-alpha",
|
||||||
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
||||||
"favico.js": "^0.3.10",
|
"favico.js": "^0.3.10",
|
||||||
|
|
|
@ -16,18 +16,11 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import createReactClass from 'create-react-class';
|
|
||||||
import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
|
import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
|
||||||
|
|
||||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||||
|
|
||||||
module.exports = createReactClass({
|
module.exports = () => {
|
||||||
displayName: 'VectorAuthFooter',
|
|
||||||
statics: {
|
|
||||||
replaces: 'AuthFooter',
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
|
||||||
const brandingConfig = SdkConfig.get().branding;
|
const brandingConfig = SdkConfig.get().branding;
|
||||||
let links = [
|
let links = [
|
||||||
{"text": "blog", "url": "https://medium.com/@RiotChat"},
|
{"text": "blog", "url": "https://medium.com/@RiotChat"},
|
||||||
|
@ -54,5 +47,7 @@ module.exports = createReactClass({
|
||||||
<a href="https://matrix.org" target="_blank" rel="noopener">{ _t('powered by Matrix') }</a>
|
<a href="https://matrix.org" target="_blank" rel="noopener">{ _t('powered by Matrix') }</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
};
|
||||||
});
|
module.exports.statics = {
|
||||||
|
replaces: 'AuthFooter',
|
||||||
|
};
|
||||||
|
|
|
@ -16,20 +16,13 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import createReactClass from 'create-react-class';
|
|
||||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is identical to `CustomServerDialog` except for replacing "this app"
|
* This is identical to `CustomServerDialog` except for replacing "this app"
|
||||||
* with "Riot".
|
* with "Riot".
|
||||||
*/
|
*/
|
||||||
module.exports = createReactClass({
|
module.exports = () => {
|
||||||
displayName: 'VectorCustomServerDialog',
|
|
||||||
statics: {
|
|
||||||
replaces: 'CustomServerDialog',
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_ErrorDialog">
|
<div className="mx_ErrorDialog">
|
||||||
<div className="mx_Dialog_title">
|
<div className="mx_Dialog_title">
|
||||||
|
@ -55,5 +48,7 @@ module.exports = createReactClass({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
};
|
||||||
});
|
module.exports.statics = {
|
||||||
|
replaces: 'CustomServerDialog',
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue