Convert Vector skin react components to Typescript

This commit is contained in:
Michael Telatynski
2021-04-26 09:49:21 +01:00
parent f0069c6ebd
commit a8429f3e1d
4 changed files with 5 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ export default class VectorEmbeddedPage extends EmbeddedPage {
static replaces = 'EmbeddedPage';
// we're overriding the base component here, for Element-specific tweaks
translate(s) {
translate(s: string) {
s = sanitizeHtml(_t(s));
// ugly fix for https://github.com/vector-im/element-web/issues/4243
// eslint-disable-next-line max-len