diff --git a/src/components/views/auth/VectorAuthPage.tsx b/src/components/views/auth/VectorAuthPage.tsx
index d37739a032..7df756a67d 100644
--- a/src/components/views/auth/VectorAuthPage.tsx
+++ b/src/components/views/auth/VectorAuthPage.tsx
@@ -15,9 +15,10 @@ limitations under the License.
*/
import React, { CSSProperties } from 'react';
-import * as sdk from 'matrix-react-sdk/src/index';
import SdkConfig from 'matrix-react-sdk/src/SdkConfig';
+import VectorAuthFooter from "./VectorAuthFooter";
+
export default class VectorAuthPage extends React.PureComponent {
static replaces = 'AuthPage';
@@ -44,8 +45,6 @@ export default class VectorAuthPage extends React.PureComponent {
}
render() {
- const AuthFooter = sdk.getComponent('auth.AuthFooter');
-
const pageStyle = {
background: `center/cover fixed url(${VectorAuthPage.getWelcomeBackgroundUrl()})`,
};
@@ -80,7 +79,7 @@ export default class VectorAuthPage extends React.PureComponent {
{ this.props.children }
-
+
);
}
diff --git a/src/vector/app.tsx b/src/vector/app.tsx
index 7a3abc0c17..b887bef9f8 100644
--- a/src/vector/app.tsx
+++ b/src/vector/app.tsx
@@ -19,7 +19,6 @@ limitations under the License.
*/
import React from 'react';
-import * as sdk from 'matrix-react-sdk/src/index';
import PlatformPeg from 'matrix-react-sdk/src/PlatformPeg';
import { _td, newTranslatableError } from 'matrix-react-sdk/src/languageHandler';
import AutoDiscoveryUtils from 'matrix-react-sdk/src/utils/AutoDiscoveryUtils';
@@ -30,6 +29,7 @@ import { IConfigOptions } from "matrix-react-sdk/src/IConfigOptions";
import { logger } from "matrix-js-sdk/src/logger";
import { createClient } from "matrix-js-sdk/src/matrix";
import { SnakedObject } from "matrix-react-sdk/src/utils/SnakedObject";
+import MatrixChat from "matrix-react-sdk/src/components/structures/MatrixChat";
import { parseQs } from './url_utils';
import VectorBasePlatform from "./platform/VectorBasePlatform";
@@ -133,7 +133,6 @@ export async function loadApp(fragParams: {}) {
const defaultDeviceName = snakedConfig.get("default_device_display_name")
?? platform.getDefaultDeviceDisplayName();
- const MatrixChat = sdk.getComponent('structures.MatrixChat');
return ;
}
-async function verifyServerConfig() {
+async function verifyServerConfig(): Promise {
let validatedConfig;
try {
logger.log("Verifying homeserver configuration");