From 1772fc04f922d9c10bc31d914a3b5e3bb3f54beb Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 15 Jun 2021 14:45:46 +0530 Subject: [PATCH] Remove text(..) Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/rightpanel/RoomDetailsView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/web/ui/session/rightpanel/RoomDetailsView.js b/src/platform/web/ui/session/rightpanel/RoomDetailsView.js index 3b8f0077..a6d1a81f 100644 --- a/src/platform/web/ui/session/rightpanel/RoomDetailsView.js +++ b/src/platform/web/ui/session/rightpanel/RoomDetailsView.js @@ -1,5 +1,5 @@ import {TemplateView} from "../../general/TemplateView.js"; -import {text, classNames, tag} from "../../general/html.js"; +import {classNames, tag} from "../../general/html.js"; import {AvatarView} from "../../avatar.js"; export class RoomDetailsView extends TemplateView { @@ -23,14 +23,14 @@ export class RoomDetailsView extends TemplateView { } _createRoomAliasDisplay(vm) { - return vm.canonicalAlias ? tag.div({className: "RoomDetailsView_id"}, [text(vm.canonicalAlias)]) : + return vm.canonicalAlias ? tag.div({className: "RoomDetailsView_id"}, [vm.canonicalAlias]) : ""; } _createRightPanelRow(t, label, labelClass, value) { const labelClassString = classNames({RoomDetailsView_label: true, ...labelClass}); return t.div({className: "RoomDetailsView_row"}, [ - t.div({className: labelClassString}, [text(label)]), + t.div({className: labelClassString}, [label]), t.div({className: "RoomDetailsView_value"}, value) ]); }