diff --git a/src/components/views/auth/Welcome.tsx b/src/components/views/auth/Welcome.tsx index 4621625422..0e12025fbd 100644 --- a/src/components/views/auth/Welcome.tsx +++ b/src/components/views/auth/Welcome.tsx @@ -17,6 +17,7 @@ limitations under the License. import React from 'react'; import classNames from "classnames"; +import * as sdk from "../../../index"; import SdkConfig from '../../../SdkConfig'; import AuthPage from "./AuthPage"; import { _td } from "../../../languageHandler"; @@ -24,7 +25,6 @@ import SettingsStore from "../../../settings/SettingsStore"; import { UIFeature } from "../../../settings/UIFeature"; import CountlyAnalytics from "../../../CountlyAnalytics"; import { replaceableComponent } from "../../../utils/replaceableComponent"; -import EmbeddedPage from "../../structures/EmbeddedPage"; import LanguageSelector from "./LanguageSelector"; // translatable strings for Welcome pages @@ -43,6 +43,9 @@ export default class Welcome extends React.PureComponent { } public render(): React.ReactNode { + // FIXME: Using an import will result in wrench-element-tests failures + const EmbeddedPage = sdk.getComponent("structures.EmbeddedPage"); + const pagesConfig = SdkConfig.get().embeddedPages; let pageUrl = null; if (pagesConfig) {