ソースを参照

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

j8
Lyubomir Marinov 8年前
コミット
a5773f1d0b

+ 44
- 10
react/features/welcome/components/WelcomePage.native.js ファイルの表示

@@ -9,10 +9,19 @@ import { AbstractWelcomePage, mapStateToProps } from './AbstractWelcomePage';
9 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 27
  * The native container rendering the welcome page.
@@ -45,6 +54,35 @@ class WelcomePage extends AbstractWelcomePage {
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 87
      * Renders a View over the local video. The latter is thought of as the
50 88
      * background (content) of this WelcomePage. The former is thought of as the
@@ -75,13 +113,9 @@ class WelcomePage extends AbstractWelcomePage {
75 113
                         <Text style = { styles.buttonText }>JOIN</Text>
76 114
                     </TouchableHighlight>
77 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 119
             </View>
86 120
         );
87 121
     }

+ 2
- 0
react/features/welcome/components/styles.js ファイルの表示

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

読み込み中…
キャンセル
保存