Skip to content

Commit 489282e

Browse files
committed
HomePage renamed to EmbeddedPage
1 parent 5030410 commit 489282e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/structures/VectorHomePage.js renamed to src/components/structures/VectorEmbeddedPage.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
Copyright 2016 OpenMarket Ltd
33
Copyright 2017 Vector Creations Ltd
4+
Copyright 2019 New Vector Ltd
45
56
Licensed under the Apache License, Version 2.0 (the "License");
67
you may not use this file except in compliance with the License.
@@ -17,13 +18,12 @@ limitations under the License.
1718

1819
'use strict';
1920

20-
import HomePage from 'matrix-react-sdk/lib/components/structures/HomePage';
21+
import EmbeddedPage from 'matrix-react-sdk/lib/components/structures/EmbeddedPage';
2122
import sanitizeHtml from 'sanitize-html';
2223
import { _t } from 'matrix-react-sdk/lib/languageHandler';
2324

24-
class VectorHomePage extends HomePage {
25-
static displayName = 'VectorHomePage';
26-
static replaces = 'HomePage';
25+
export default class VectorEmbeddedPage extends EmbeddedPage {
26+
static replaces = 'EmbeddedPage';
2727

2828
// we're overriding the base component here, for Riot-specific tweaks
2929
translate(s) {
@@ -34,5 +34,3 @@ class VectorHomePage extends HomePage {
3434
return s;
3535
}
3636
}
37-
38-
module.exports = VectorHomePage;

0 commit comments

Comments
 (0)