Browse Source

[RN] Links to Send feedback and Privacy (policy)

j8
Lyubomir Marinov 8 years ago
parent
commit
a5773f1d0b

+ 44
- 10
react/features/welcome/components/WelcomePage.native.js View File

9
 import { styles } from './styles';
9
 import { styles } from './styles';
10
 
10
 
11
 /**
11
 /**
12
- * The URL at which the terms and conditions (of service) are available to the
13
- * user.
12
+ * The URL at which the privacy policy is available to the user.
14
  */
13
  */
15
-const TERMS_AND_CONDITIONS_URL = 'https://jitsi.org/meet/terms';
14
+const PRIVACY_URL = 'https://jitsi.org/meet/privacy';
15
+
16
+/**
17
+ * The URL at which the user may send feedback.
18
+ */
19
+const SEND_FEEDBACK_URL = 'mailto:support@jitsi.org';
20
+
21
+/**
22
+ * The URL at which the terms (of service/use) are available to the user.
23
+ */
24
+const TERMS_URL = 'https://jitsi.org/meet/terms';
16
 
25
 
17
 /**
26
 /**
18
  * The native container rendering the welcome page.
27
  * The native container rendering the welcome page.
45
         );
54
         );
46
     }
55
     }
47
 
56
 
57
+    /**
58
+     * Renders legal-related content such as Terms of service/use, Privacy
59
+     * policy, etc.
60
+     *
61
+     * @private
62
+     * @returns {ReactElement}
63
+     */
64
+    _renderLegalese() {
65
+        return (
66
+            <View style = { styles.legaleseContainer }>
67
+                <Link
68
+                    style = { styles.legaleseItem }
69
+                    url = { TERMS_URL }>
70
+                    Terms
71
+                </Link>
72
+                <Link
73
+                    style = { styles.legaleseItem }
74
+                    url = { PRIVACY_URL }>
75
+                    Privacy
76
+                </Link>
77
+                <Link
78
+                    style = { styles.legaleseItem }
79
+                    url = { SEND_FEEDBACK_URL }>
80
+                    Send feedback
81
+                </Link>
82
+            </View>
83
+        );
84
+    }
85
+
48
     /**
86
     /**
49
      * Renders a View over the local video. The latter is thought of as the
87
      * Renders a View over the local video. The latter is thought of as the
50
      * background (content) of this WelcomePage. The former is thought of as the
88
      * background (content) of this WelcomePage. The former is thought of as the
75
                         <Text style = { styles.buttonText }>JOIN</Text>
113
                         <Text style = { styles.buttonText }>JOIN</Text>
76
                     </TouchableHighlight>
114
                     </TouchableHighlight>
77
                 </View>
115
                 </View>
78
-                <View style = { styles.legaleseContainer }>
79
-                    <Link
80
-                        style = { styles.legaleseItem }
81
-                        url = { TERMS_AND_CONDITIONS_URL }>
82
-                        Terms and Conditions
83
-                    </Link>
84
-                </View>
116
+                {
117
+                    this._renderLegalese()
118
+                }
85
             </View>
119
             </View>
86
         );
120
         );
87
     }
121
     }

+ 2
- 0
react/features/welcome/components/styles.js View File

46
      * Policy and Terms of Service displayed on the WelcomePage.
46
      * Policy and Terms of Service displayed on the WelcomePage.
47
      */
47
      */
48
     legaleseContainer: {
48
     legaleseContainer: {
49
+        alignItems: 'center',
49
         flex: 0,
50
         flex: 0,
50
         flexDirection: 'row',
51
         flexDirection: 'row',
51
         justifyContent: 'center'
52
         justifyContent: 'center'
57
      */
58
      */
58
     legaleseItem: {
59
     legaleseItem: {
59
         color: TEXT_COLOR,
60
         color: TEXT_COLOR,
61
+        fontSize: 12,
60
         margin: BoxModel.margin
62
         margin: BoxModel.margin
61
     },
63
     },
62
 
64
 

Loading…
Cancel
Save