|
@@ -4,19 +4,10 @@ import React, { Component } from 'react';
|
4
|
4
|
import { connect } from 'react-redux';
|
5
|
5
|
|
6
|
6
|
import { setPassword } from '../../base/conference';
|
7
|
|
-import { Dialog } from '../../base/dialog';
|
|
7
|
+import { InputDialog } from '../../base/dialog';
|
8
|
8
|
|
9
|
9
|
import { _cancelPasswordRequiredPrompt } from '../actions';
|
10
|
10
|
|
11
|
|
-/**
|
12
|
|
- * The style of the {@link TextInput} rendered by
|
13
|
|
- * {@code PasswordRequiredPrompt}. As it requests the entry of a password, the
|
14
|
|
- * entry should better be secure.
|
15
|
|
- */
|
16
|
|
-const _TEXT_INPUT_PROPS = {
|
17
|
|
- secureTextEntry: true
|
18
|
|
-};
|
19
|
|
-
|
20
|
11
|
/**
|
21
|
12
|
* {@code PasswordRequiredPrompt}'s React {@code Component} prop types.
|
22
|
13
|
*/
|
|
@@ -62,12 +53,13 @@ class PasswordRequiredPrompt extends Component<Props> {
|
62
|
53
|
*/
|
63
|
54
|
render() {
|
64
|
55
|
return (
|
65
|
|
- <Dialog
|
66
|
|
- bodyKey = 'dialog.passwordLabel'
|
|
56
|
+ <InputDialog
|
|
57
|
+ contentKey = 'dialog.passwordLabel'
|
67
|
58
|
onCancel = { this._onCancel }
|
68
|
59
|
onSubmit = { this._onSubmit }
|
69
|
|
- textInputProps = { _TEXT_INPUT_PROPS }
|
70
|
|
- titleKey = 'dialog.passwordRequired' />
|
|
60
|
+ textInputProps = {{
|
|
61
|
+ secureTextEntry: true
|
|
62
|
+ }} />
|
71
|
63
|
);
|
72
|
64
|
}
|
73
|
65
|
|