[RN] Make feature dialogs branded: room-lock
This commit is contained in:
parent
f6e6b09e78
commit
4bc09dd8b9
|
@ -4,19 +4,10 @@ import React, { Component } from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { setPassword } from '../../base/conference';
|
import { setPassword } from '../../base/conference';
|
||||||
import { Dialog } from '../../base/dialog';
|
import { InputDialog } from '../../base/dialog';
|
||||||
|
|
||||||
import { _cancelPasswordRequiredPrompt } from '../actions';
|
import { _cancelPasswordRequiredPrompt } from '../actions';
|
||||||
|
|
||||||
/**
|
|
||||||
* The style of the {@link TextInput} rendered by
|
|
||||||
* {@code PasswordRequiredPrompt}. As it requests the entry of a password, the
|
|
||||||
* entry should better be secure.
|
|
||||||
*/
|
|
||||||
const _TEXT_INPUT_PROPS = {
|
|
||||||
secureTextEntry: true
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code PasswordRequiredPrompt}'s React {@code Component} prop types.
|
* {@code PasswordRequiredPrompt}'s React {@code Component} prop types.
|
||||||
*/
|
*/
|
||||||
|
@ -62,12 +53,13 @@ class PasswordRequiredPrompt extends Component<Props> {
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<InputDialog
|
||||||
bodyKey = 'dialog.passwordLabel'
|
contentKey = 'dialog.passwordLabel'
|
||||||
onCancel = { this._onCancel }
|
onCancel = { this._onCancel }
|
||||||
onSubmit = { this._onSubmit }
|
onSubmit = { this._onSubmit }
|
||||||
textInputProps = { _TEXT_INPUT_PROPS }
|
textInputProps = {{
|
||||||
titleKey = 'dialog.passwordRequired' />
|
secureTextEntry: true
|
||||||
|
}} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Dialog } from '../../base/dialog';
|
import { InputDialog } from '../../base/dialog';
|
||||||
|
|
||||||
import { endRoomLockRequest } from '../actions';
|
import { endRoomLockRequest } from '../actions';
|
||||||
|
|
||||||
|
@ -60,12 +60,11 @@ class RoomLockPrompt extends Component<Props> {
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<InputDialog
|
||||||
bodyKey = 'dialog.passwordLabel'
|
contentKey = 'dialog.passwordLabel'
|
||||||
onCancel = { this._onCancel }
|
onCancel = { this._onCancel }
|
||||||
onSubmit = { this._onSubmit }
|
onSubmit = { this._onSubmit }
|
||||||
textInputProps = { _TEXT_INPUT_PROPS }
|
textInputProps = { _TEXT_INPUT_PROPS } />
|
||||||
titleKey = 'dialog.lockRoom' />
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue