From 7f5c501b2b1e25ef5583b166b38a2926717042a1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 17 Jul 2020 15:55:30 -0600 Subject: [PATCH] CallView2 -> CallView --- res/css/_components.scss | 2 +- res/css/views/voip/{_CallView2.scss => _CallView.scss} | 6 ++---- src/components/views/rooms/AuxPanel.js | 2 +- src/components/views/voip/CallPreview2.tsx | 2 +- src/components/views/voip/{CallView2.tsx => CallView.tsx} | 6 ++---- 5 files changed, 7 insertions(+), 11 deletions(-) rename res/css/views/voip/{_CallView2.scss => _CallView.scss} (93%) rename src/components/views/voip/{CallView2.tsx => CallView.tsx} (96%) diff --git a/res/css/_components.scss b/res/css/_components.scss index da1af75ec3..23e4af780a 100644 --- a/res/css/_components.scss +++ b/res/css/_components.scss @@ -217,5 +217,5 @@ @import "./views/terms/_InlineTermsAgreement.scss"; @import "./views/verification/_VerificationShowSas.scss"; @import "./views/voip/_CallContainer.scss"; -@import "./views/voip/_CallView2.scss"; +@import "./views/voip/_CallView.scss"; @import "./views/voip/_VideoView.scss"; diff --git a/res/css/views/voip/_CallView2.scss b/res/css/views/voip/_CallView.scss similarity index 93% rename from res/css/views/voip/_CallView2.scss rename to res/css/views/voip/_CallView.scss index 3b66e7a175..f6f3d40308 100644 --- a/res/css/views/voip/_CallView2.scss +++ b/res/css/views/voip/_CallView.scss @@ -15,9 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// TODO: Rename on launch: https://github.com/vector-im/riot-web/issues/14231 - -.mx_CallView2_voice { +.mx_CallView_voice { background-color: $accent-color; color: $accent-fg-color; cursor: pointer; @@ -60,7 +58,7 @@ limitations under the License. } } -.mx_CallView2_hangup { +.mx_CallView_hangup { position: absolute; right: 8px; diff --git a/src/components/views/rooms/AuxPanel.js b/src/components/views/rooms/AuxPanel.js index d6a3b156d5..ad66f0e151 100644 --- a/src/components/views/rooms/AuxPanel.js +++ b/src/components/views/rooms/AuxPanel.js @@ -28,6 +28,7 @@ import classNames from 'classnames'; import RateLimitedFunc from '../../../ratelimitedfunc'; import SettingsStore from "../../../settings/SettingsStore"; import AutoHideScrollbar from "../../structures/AutoHideScrollbar"; +import CallView from "../voip/CallView"; export default createReactClass({ @@ -142,7 +143,6 @@ export default createReactClass({ }, render: function() { - const CallView = sdk.getComponent("voip.CallView"); const TintableSvg = sdk.getComponent("elements.TintableSvg"); let fileDropTarget = null; diff --git a/src/components/views/voip/CallPreview2.tsx b/src/components/views/voip/CallPreview2.tsx index 31b67a01ad..cf8a305fbc 100644 --- a/src/components/views/voip/CallPreview2.tsx +++ b/src/components/views/voip/CallPreview2.tsx @@ -19,7 +19,7 @@ limitations under the License. import React from 'react'; -import CallView from "./CallView2"; +import CallView from "./CallView"; import RoomViewStore from '../../../stores/RoomViewStore'; import CallHandler from '../../../CallHandler'; import dis from '../../../dispatcher/dispatcher'; diff --git a/src/components/views/voip/CallView2.tsx b/src/components/views/voip/CallView.tsx similarity index 96% rename from src/components/views/voip/CallView2.tsx rename to src/components/views/voip/CallView.tsx index c80d82d395..8416f56fd9 100644 --- a/src/components/views/voip/CallView2.tsx +++ b/src/components/views/voip/CallView.tsx @@ -15,8 +15,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -// TODO: Rename on launch: https://github.com/vector-im/riot-web/issues/14231 - import React, {createRef} from 'react'; import Room from 'matrix-js-sdk/src/models/room'; import dis from '../../../dispatcher/dispatcher'; @@ -156,7 +154,7 @@ export default class CallView extends React.Component { const client = MatrixClientPeg.get(); const callRoom = client.getRoom(this.state.call.roomId); - view = + view = { let hangup: React.ReactNode; if (this.props.showHangup) { hangup =
{ dis.dispatch({ action: 'hangup',