Przeglądaj źródła

[RN] Make feature dialogs branded: room-lock

j8
Bettenbuk Zoltan 7 lat temu
rodzic
commit
4bc09dd8b9

+ 6
- 14
react/features/room-lock/components/PasswordRequiredPrompt.native.js Wyświetl plik

@@ -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
 

+ 4
- 5
react/features/room-lock/components/RoomLockPrompt.native.js Wyświetl plik

@@ -3,7 +3,7 @@
3 3
 import React, { Component } from 'react';
4 4
 import { connect } from 'react-redux';
5 5
 
6
-import { Dialog } from '../../base/dialog';
6
+import { InputDialog } from '../../base/dialog';
7 7
 
8 8
 import { endRoomLockRequest } from '../actions';
9 9
 
@@ -60,12 +60,11 @@ class RoomLockPrompt extends Component<Props> {
60 60
      */
61 61
     render() {
62 62
         return (
63
-            <Dialog
64
-                bodyKey = 'dialog.passwordLabel'
63
+            <InputDialog
64
+                contentKey = 'dialog.passwordLabel'
65 65
                 onCancel = { this._onCancel }
66 66
                 onSubmit = { this._onSubmit }
67
-                textInputProps = { _TEXT_INPUT_PROPS }
68
-                titleKey = 'dialog.lockRoom' />
67
+                textInputProps = { _TEXT_INPUT_PROPS } />
69 68
         );
70 69
     }
71 70
 

Ładowanie…
Anuluj
Zapisz