Browse Source

[RN] Make feature dialogs branded: room-lock

master
Bettenbuk Zoltan 7 years ago
parent
commit
4bc09dd8b9

+ 6
- 14
react/features/room-lock/components/PasswordRequiredPrompt.native.js View File

4
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
5
 
5
 
6
 import { setPassword } from '../../base/conference';
6
 import { setPassword } from '../../base/conference';
7
-import { Dialog } from '../../base/dialog';
7
+import { InputDialog } from '../../base/dialog';
8
 
8
 
9
 import { _cancelPasswordRequiredPrompt } from '../actions';
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
  * {@code PasswordRequiredPrompt}'s React {@code Component} prop types.
12
  * {@code PasswordRequiredPrompt}'s React {@code Component} prop types.
22
  */
13
  */
62
      */
53
      */
63
     render() {
54
     render() {
64
         return (
55
         return (
65
-            <Dialog
66
-                bodyKey = 'dialog.passwordLabel'
56
+            <InputDialog
57
+                contentKey = 'dialog.passwordLabel'
67
                 onCancel = { this._onCancel }
58
                 onCancel = { this._onCancel }
68
                 onSubmit = { this._onSubmit }
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 View File

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

Loading…
Cancel
Save