Convert components to ES6 exports
This commit is contained in:
parent
c44a6e296e
commit
8e754765e2
3 changed files with 11 additions and 6 deletions
|
@ -18,8 +18,7 @@ function pollForUpdates() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {};
|
export function start(updateBaseUrl) {
|
||||||
module.exports.start = function startAutoUpdate(updateBaseUrl) {
|
|
||||||
if (updateBaseUrl.slice(-1) !== '/') {
|
if (updateBaseUrl.slice(-1) !== '/') {
|
||||||
updateBaseUrl = updateBaseUrl + '/';
|
updateBaseUrl = updateBaseUrl + '/';
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ 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 = () => {
|
const VectorAuthFooter = () => {
|
||||||
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"},
|
||||||
|
@ -48,4 +48,7 @@ module.exports = () => {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
module.exports.replaces = 'AuthFooter';
|
|
||||||
|
VectorAuthFooter.replaces = 'AuthFooter';
|
||||||
|
|
||||||
|
export default VectorAuthFooter;
|
||||||
|
|
|
@ -22,7 +22,7 @@ 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 = ({onFinished}) => {
|
const VectorCustomServerDialog = ({onFinished}) => {
|
||||||
return (
|
return (
|
||||||
<div className="mx_ErrorDialog">
|
<div className="mx_ErrorDialog">
|
||||||
<div className="mx_Dialog_title">
|
<div className="mx_Dialog_title">
|
||||||
|
@ -44,4 +44,7 @@ module.exports = ({onFinished}) => {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
module.exports.replaces = 'CustomServerDialog';
|
|
||||||
|
VectorCustomServerDialog.replaces = 'CustomServerDialog';
|
||||||
|
|
||||||
|
export default VectorCustomServerDialog;
|
||||||
|
|
Loading…
Reference in a new issue