Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3514032
D8870.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8870.diff
View Options
diff --git a/native/account/logged-out-modal.react.js b/native/account/logged-out-modal.react.js
--- a/native/account/logged-out-modal.react.js
+++ b/native/account/logged-out-modal.react.js
@@ -556,19 +556,39 @@
);
}
- buttons = (
- <Animated.View style={[styles.buttonContainer, opacityStyle]}>
- <LoggedOutStaffInfo />
- {siweButton}
+ const signInButtons = [];
+ signInButtons.push(
+ <TouchableOpacity
+ onPress={this.onPressLogIn}
+ style={[styles.button, styles.classicAuthButton]}
+ activeOpacity={0.6}
+ key="login-form"
+ >
+ <Text style={[styles.buttonText, styles.classicAuthButtonText]}>
+ Sign in
+ </Text>
+ </TouchableOpacity>,
+ );
+ if (__DEV__) {
+ signInButtons.push(
<TouchableOpacity
- onPress={this.onPressLogIn}
+ onPress={null}
style={[styles.button, styles.classicAuthButton]}
activeOpacity={0.6}
+ key="qr-code-login"
>
<Text style={[styles.buttonText, styles.classicAuthButtonText]}>
- Sign in
+ Sign in (QR)
</Text>
- </TouchableOpacity>
+ </TouchableOpacity>,
+ );
+ }
+
+ buttons = (
+ <Animated.View style={[styles.buttonContainer, opacityStyle]}>
+ <LoggedOutStaffInfo />
+ {siweButton}
+ <View style={styles.signInButtons}>{signInButtons}</View>
<View style={styles.registerButtons}>{registerButtons}</View>
</Animated.View>
);
@@ -705,6 +725,9 @@
registerButtons: {
flexDirection: 'row',
},
+ signInButtons: {
+ flexDirection: 'row',
+ },
container: {
backgroundColor: 'transparent',
flex: 1,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 3:04 AM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2693328
Default Alt Text
D8870.diff (1 KB)
Attached To
Mode
D8870: [native] Add a temporary sign in via QR code button on native
Attached
Detach File
Event Timeline
Log In to Comment