ref(ui-components) Use new Dialog (#12363)

Convert some files to TS
Improve Dialog component
This commit is contained in:
Robert Pintilii
2022-10-17 14:27:48 +03:00
committed by GitHub
parent 6274299d49
commit dd6478b3cf
9 changed files with 148 additions and 163 deletions

View File

@@ -2,11 +2,12 @@
import React, { Component } from 'react';
import { Dialog, hideDialog } from '../../base/dialog';
import { hideDialog } from '../../base/dialog/actions';
import { translate } from '../../base/i18n';
import { getParticipantById } from '../../base/participants';
import { connect } from '../../base/redux';
import { getLocalVideoTrack } from '../../base/tracks';
import Dialog from '../../base/ui/components/web/Dialog';
import { deny, grant } from '../actions';
declare var APP: Object;
@@ -68,11 +69,10 @@ class RemoteControlAuthorizationDialog extends Component<Props> {
render() {
return (
<Dialog
okKey = { 'dialog.allow' }
ok = {{ translationKey: 'dialog.allow' }}
onCancel = { this._onCancel }
onSubmit = { this._onSubmit }
titleKey = 'dialog.remoteControlTitle'
width = 'small'>
titleKey = 'dialog.remoteControlTitle'>
{
this.props.t(
'dialog.remoteControlRequestMessage',