Skip to content

Commit 51dc4bb

Browse files
committed
Move async components to async-components to move them out of the skin bundle
and s/CompatibilityPage/CompatibilityView/ Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 08f9018 commit 51dc4bb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/components/structures/CompatibilityPage.tsx renamed to src/async-components/structures/CompatibilityView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface IProps {
2525
onAccept: () => void;
2626
}
2727

28-
const CompatibilityPage: React.FC<IProps> = ({ onAccept }) => {
28+
const CompatibilityView: React.FC<IProps> = ({ onAccept }) => {
2929
return <div className="mx_ErrorView">
3030
<div className="mx_ErrorView_container">
3131
<div className="mx_HomePage_header">
@@ -404,5 +404,5 @@ const CompatibilityPage: React.FC<IProps> = ({ onAccept }) => {
404404
</div>;
405405
};
406406

407-
export default CompatibilityPage;
407+
export default CompatibilityView;
408408

File renamed without changes.

src/vector/init.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,16 @@ export async function loadApp(fragParams: {}) {
148148
export async function showError(title: string, messages?: string[]) {
149149
const ErrorView = (await import(
150150
/* webpackChunkName: "error-view" */
151-
"../components/structures/ErrorView")).default;
151+
"../async-components/structures/ErrorView")).default;
152152
window.matrixChat = ReactDOM.render(<ErrorView title={title} messages={messages} />,
153153
document.getElementById('matrixchat'));
154154
}
155155

156156
export async function showIncompatibleBrowser(onAccept) {
157-
const CompatibilityPage = (await import(
158-
/* webpackChunkName: "compatibility-page" */
159-
"../components/structures/CompatibilityPage")).default;
160-
window.matrixChat = ReactDOM.render(<CompatibilityPage onAccept={onAccept} />,
157+
const CompatibilityView = (await import(
158+
/* webpackChunkName: "compatibility-view" */
159+
"../async-components/structures/CompatibilityView")).default;
160+
window.matrixChat = ReactDOM.render(<CompatibilityView onAccept={onAccept} />,
161161
document.getElementById('matrixchat'));
162162
}
163163

0 commit comments

Comments
 (0)