Browse Source

Merge pull request #11713 from vector-im/travis/babel7-wp-es6-export

Convert components to ES6 exports
pull/11801/head
Travis Ralston 3 years ago committed by GitHub
parent
commit
11e304f42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      electron_app/src/updater.js
  2. 7
      src/components/views/auth/VectorAuthFooter.js
  3. 7
      src/components/views/auth/VectorCustomServerDialog.js

3
electron_app/src/updater.js

@ -18,8 +18,7 @@ function pollForUpdates() {
}
}
module.exports = {};
module.exports.start = function startAutoUpdate(updateBaseUrl) {
export function start(updateBaseUrl) {
if (updateBaseUrl.slice(-1) !== '/') {
updateBaseUrl = updateBaseUrl + '/';
}

7
src/components/views/auth/VectorAuthFooter.js

@ -20,7 +20,7 @@ import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
import { _t } from 'matrix-react-sdk/lib/languageHandler';
module.exports = () => {
const VectorAuthFooter = () => {
const brandingConfig = SdkConfig.get().branding;
let links = [
{"text": "blog", "url": "https://medium.com/@RiotChat"},
@ -48,4 +48,7 @@ module.exports = () => {
</div>
);
};
module.exports.replaces = 'AuthFooter';
VectorAuthFooter.replaces = 'AuthFooter';
export default VectorAuthFooter;

7
src/components/views/auth/VectorCustomServerDialog.js

@ -22,7 +22,7 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
* This is identical to `CustomServerDialog` except for replacing "this app"
* with "Riot".
*/
module.exports = ({onFinished}) => {
const VectorCustomServerDialog = ({onFinished}) => {
return (
<div className="mx_ErrorDialog">
<div className="mx_Dialog_title">
@ -44,4 +44,7 @@ module.exports = ({onFinished}) => {
</div>
);
};
module.exports.replaces = 'CustomServerDialog';
VectorCustomServerDialog.replaces = 'CustomServerDialog';
export default VectorCustomServerDialog;

Loading…
Cancel
Save