Update unsupported browser react component to new designs (#27857)
This commit is contained in:
parent
31345ddd36
commit
59e526e318
16 changed files with 564 additions and 466 deletions
|
@ -109,12 +109,10 @@ export async function loadApp(fragParams: {}): Promise<void> {
|
|||
}
|
||||
|
||||
export async function showError(title: string, messages?: string[]): Promise<void> {
|
||||
const ErrorView = (
|
||||
await import(
|
||||
/* webpackChunkName: "error-view" */
|
||||
"../async-components/structures/ErrorView"
|
||||
)
|
||||
).default;
|
||||
const { ErrorView } = await import(
|
||||
/* webpackChunkName: "error-view" */
|
||||
"../async-components/structures/ErrorView"
|
||||
);
|
||||
window.matrixChat = ReactDOM.render(
|
||||
<ErrorView title={title} messages={messages} />,
|
||||
document.getElementById("matrixchat"),
|
||||
|
@ -122,14 +120,12 @@ export async function showError(title: string, messages?: string[]): Promise<voi
|
|||
}
|
||||
|
||||
export async function showIncompatibleBrowser(onAccept: () => void): Promise<void> {
|
||||
const CompatibilityView = (
|
||||
await import(
|
||||
/* webpackChunkName: "compatibility-view" */
|
||||
"../async-components/structures/CompatibilityView"
|
||||
)
|
||||
).default;
|
||||
const { UnsupportedBrowserView } = await import(
|
||||
/* webpackChunkName: "error-view" */
|
||||
"../async-components/structures/ErrorView"
|
||||
);
|
||||
window.matrixChat = ReactDOM.render(
|
||||
<CompatibilityView onAccept={onAccept} />,
|
||||
<UnsupportedBrowserView onAccept={onAccept} />,
|
||||
document.getElementById("matrixchat"),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue