Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3406547
D7951.id26991.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7951.id26991.diff
View Options
diff --git a/native/community-creation/community-configuration.react.js b/native/community-creation/community-configuration.react.js
--- a/native/community-creation/community-configuration.react.js
+++ b/native/community-creation/community-configuration.react.js
@@ -1,18 +1,67 @@
// @flow
import * as React from 'react';
+import { Text, View } from 'react-native';
import type { CommunityCreationNavigationProp } from './community-creation-navigator.react.js';
+import RegistrationContainer from '../account/registration/registration-container.react.js';
+import RegistrationContentContainer from '../account/registration/registration-content-container.react.js';
+import CommIcon from '../components/comm-icon.react.js';
+import Pill from '../components/pill.react.js';
import { type NavigationRoute } from '../navigation/route-names.js';
+import { useColors, useStyles } from '../themes/colors.js';
type Props = {
+navigation: CommunityCreationNavigationProp<'CommunityConfiguration'>,
+route: NavigationRoute<'CommunityConfiguration'>,
};
-
// eslint-disable-next-line no-unused-vars
function CommunityConfiguration(props: Props): React.Node {
- return null;
+ const styles = useStyles(unboundStyles);
+ const colors = useColors();
+
+ const cloudIcon = (
+ <CommIcon
+ name="cloud-filled"
+ size={12}
+ color={colors.panelForegroundLabel}
+ />
+ );
+
+ return (
+ <RegistrationContainer>
+ <RegistrationContentContainer style={styles.containerPaddingOverride}>
+ <View style={styles.keyserverRowContainer}>
+ <Text style={styles.withinText}>within</Text>
+ <Pill
+ label="ashoat"
+ backgroundColor={colors.codeBackground}
+ icon={cloudIcon}
+ />
+ </View>
+ </RegistrationContentContainer>
+ </RegistrationContainer>
+ );
}
+const unboundStyles = {
+ keyserverRowContainer: {
+ flexDirection: 'row',
+ justifyContent: 'center',
+ alignItems: 'center',
+ backgroundColor: 'panelForeground',
+ height: 48,
+ borderColor: 'panelForegroundBorder',
+ borderBottomWidth: 1,
+ },
+ withinText: {
+ color: 'panelForegroundLabel',
+ fontSize: 14,
+ marginRight: 6,
+ },
+ containerPaddingOverride: {
+ padding: 0,
+ },
+};
+
export default CommunityConfiguration;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 2:12 AM (7 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614240
Default Alt Text
D7951.id26991.diff (2 KB)
Attached To
Mode
D7951: [native] Add keyserver label to `CommunityConfiguration`
Attached
Detach File
Event Timeline
Log In to Comment