Page MenuHomePhabricator

D7495.id25440.diff
No OneTemporary

D7495.id25440.diff

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
@@ -508,28 +508,49 @@
);
} else if (this.state.mode === 'prompt') {
const opacityStyle = { opacity: this.buttonOpacity };
- buttons = (
- <Animated.View style={[styles.buttonContainer, opacityStyle]}>
- <LoggedOutStaffInfo />
- {siweButton}
+
+ const registerButtons = [];
+ registerButtons.push(
+ <TouchableOpacity
+ onPress={this.onPressRegister}
+ style={[styles.button, styles.classicAuthButton]}
+ activeOpacity={0.6}
+ key="old"
+ >
+ <Text style={[styles.buttonText, styles.classicAuthButtonText]}>
+ Register
+ </Text>
+ </TouchableOpacity>,
+ );
+ if (__DEV__) {
+ registerButtons.push(
<TouchableOpacity
- onPress={this.onPressLogIn}
+ onPress={this.onPressRegister}
style={[styles.button, styles.classicAuthButton]}
activeOpacity={0.6}
+ key="new"
>
<Text style={[styles.buttonText, styles.classicAuthButtonText]}>
- Sign in
+ Register
</Text>
- </TouchableOpacity>
+ </TouchableOpacity>,
+ );
+ }
+
+ buttons = (
+ <Animated.View style={[styles.buttonContainer, opacityStyle]}>
+ <LoggedOutStaffInfo />
+ {siweButton}
<TouchableOpacity
- onPress={this.onPressRegister}
+ onPress={this.onPressLogIn}
style={[styles.button, styles.classicAuthButton]}
activeOpacity={0.6}
>
<Text style={[styles.buttonText, styles.classicAuthButtonText]}>
- Register
+ Sign in
</Text>
</TouchableOpacity>
+ <View style={styles.registerButtons}>{registerButtons}</View>
</Animated.View>
);
} else if (this.state.mode === 'loading') {
@@ -636,6 +657,7 @@
paddingLeft: 18,
paddingRight: 18,
paddingTop: 14,
+ flex: 1,
},
buttonContainer: {
bottom: 0,
@@ -657,6 +679,9 @@
classicAuthButtonText: {
color: 'whiteText',
},
+ registerButtons: {
+ flexDirection: 'row',
+ },
container: {
backgroundColor: 'transparent',
flex: 1,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 12:06 PM (17 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694137
Default Alt Text
D7495.id25440.diff (2 KB)

Event Timeline