Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3537058
D7832.id26535.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D7832.id26535.diff
View Options
diff --git a/native/account/registration/connect-ethereum.react.js b/native/account/registration/connect-ethereum.react.js
--- a/native/account/registration/connect-ethereum.react.js
+++ b/native/account/registration/connect-ethereum.react.js
@@ -3,6 +3,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
+import RegistrationButtonContainer from './registration-button-container.react.js';
import RegistrationButton from './registration-button.react.js';
import RegistrationContentContainer from './registration-content-container.react.js';
import type { RegistrationNavigationProp } from './registration-navigator.react.js';
@@ -82,16 +83,18 @@
<EthereumLogoDark />
</View>
</RegistrationContentContainer>
- <RegistrationButton
- onPress={onConnect}
- label="Connect Ethereum wallet"
- variant="enabled"
- />
- <RegistrationButton
- onPress={onSkip}
- label="Do not connect"
- variant="enabled"
- />
+ <RegistrationButtonContainer>
+ <RegistrationButton
+ onPress={onConnect}
+ label="Connect Ethereum wallet"
+ variant="enabled"
+ />
+ <RegistrationButton
+ onPress={onSkip}
+ label="Do not connect"
+ variant="enabled"
+ />
+ </RegistrationButtonContainer>
</View>
);
}
diff --git a/native/account/registration/cool-or-nerd-mode-selection.react.js b/native/account/registration/cool-or-nerd-mode-selection.react.js
--- a/native/account/registration/cool-or-nerd-mode-selection.react.js
+++ b/native/account/registration/cool-or-nerd-mode-selection.react.js
@@ -4,6 +4,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
+import RegistrationButtonContainer from './registration-button-container.react.js';
import RegistrationButton from './registration-button.react.js';
import RegistrationContentContainer from './registration-content-container.react.js';
import type { RegistrationNavigationProp } from './registration-navigator.react.js';
@@ -84,11 +85,13 @@
</Text>
</RegistrationTile>
</RegistrationContentContainer>
- <RegistrationButton
- onPress={onSubmit}
- label="Next"
- variant={buttonState}
- />
+ <RegistrationButtonContainer>
+ <RegistrationButton
+ onPress={onSubmit}
+ label="Next"
+ variant={buttonState}
+ />
+ </RegistrationButtonContainer>
</View>
);
}
diff --git a/native/account/registration/keyserver-selection.react.js b/native/account/registration/keyserver-selection.react.js
--- a/native/account/registration/keyserver-selection.react.js
+++ b/native/account/registration/keyserver-selection.react.js
@@ -4,6 +4,7 @@
import * as React from 'react';
import { Text, TextInput, View } from 'react-native';
+import RegistrationButtonContainer from './registration-button-container.react.js';
import RegistrationButton from './registration-button.react.js';
import RegistrationContentContainer from './registration-content-container.react.js';
import type { RegistrationNavigationProp } from './registration-navigator.react.js';
@@ -124,11 +125,13 @@
/>
</RegistrationTile>
</RegistrationContentContainer>
- <RegistrationButton
- onPress={onSubmit}
- label="Next"
- variant={buttonState}
- />
+ <RegistrationButtonContainer>
+ <RegistrationButton
+ onPress={onSubmit}
+ label="Next"
+ variant={buttonState}
+ />
+ </RegistrationButtonContainer>
</View>
);
}
diff --git a/native/account/registration/registration-button-container.react.js b/native/account/registration/registration-button-container.react.js
new file mode 100644
--- /dev/null
+++ b/native/account/registration/registration-button-container.react.js
@@ -0,0 +1,20 @@
+// @flow
+
+import * as React from 'react';
+import { View } from 'react-native';
+
+type Props = {
+ +children: React.Node,
+};
+function RegistrationButtonContainer(props: Props): React.Node {
+ return <View style={styles.container}>{props.children}</View>;
+}
+
+const styles = {
+ container: {
+ marginVertical: 8,
+ marginHorizontal: 16,
+ },
+};
+
+export default RegistrationButtonContainer;
diff --git a/native/account/registration/registration-button.react.js b/native/account/registration/registration-button.react.js
--- a/native/account/registration/registration-button.react.js
+++ b/native/account/registration/registration-button.react.js
@@ -45,7 +45,7 @@
button: {
backgroundColor: 'purpleButton',
borderRadius: 8,
- margin: 16,
+ marginVertical: 8,
},
buttonText: {
fontSize: 18,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 8:03 PM (11 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2705019
Default Alt Text
D7832.id26535.diff (4 KB)
Attached To
Mode
D7832: [native] Introduce RegistrationButtonContainer
Attached
Detach File
Event Timeline
Log In to Comment