Upgrade to babel@7 and support TypeScript
See https://github.com/matrix-org/matrix-react-sdk/pull/3292 Like react-sdk#3292, this fixes the couple source files which mix imports and module exports (they can't be mixed anymore).
This commit is contained in:
parent
76606256a2
commit
7b89893645
6 changed files with 1041 additions and 707 deletions
|
@ -22,7 +22,7 @@ import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
|
|||
|
||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||
|
||||
module.exports = React.createClass({
|
||||
export default React.createClass({
|
||||
displayName: 'VectorAuthFooter',
|
||||
statics: {
|
||||
replaces: 'AuthFooter',
|
||||
|
|
|
@ -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 = React.createClass({
|
||||
export default React.createClass({
|
||||
displayName: 'VectorCustomServerDialog',
|
||||
statics: {
|
||||
replaces: 'CustomServerDialog',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue