HomePage renamed to EmbeddedPage

This commit is contained in:
J. Ryan Stinnett 2019-02-07 10:57:08 +00:00
parent 5030410dd6
commit 489282e047

View file

@ -1,6 +1,7 @@
/* /*
Copyright 2016 OpenMarket Ltd Copyright 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd Copyright 2017 Vector Creations Ltd
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -17,13 +18,12 @@ limitations under the License.
'use strict'; 'use strict';
import HomePage from 'matrix-react-sdk/lib/components/structures/HomePage'; import EmbeddedPage from 'matrix-react-sdk/lib/components/structures/EmbeddedPage';
import sanitizeHtml from 'sanitize-html'; import sanitizeHtml from 'sanitize-html';
import { _t } from 'matrix-react-sdk/lib/languageHandler'; import { _t } from 'matrix-react-sdk/lib/languageHandler';
class VectorHomePage extends HomePage { export default class VectorEmbeddedPage extends EmbeddedPage {
static displayName = 'VectorHomePage'; static replaces = 'EmbeddedPage';
static replaces = 'HomePage';
// we're overriding the base component here, for Riot-specific tweaks // we're overriding the base component here, for Riot-specific tweaks
translate(s) { translate(s) {
@ -34,5 +34,3 @@ class VectorHomePage extends HomePage {
return s; return s;
} }
} }
module.exports = VectorHomePage;