Page MenuHomePhabricator

D7951.id26992.diff
No OneTemporary

D7951.id26992.diff

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

Mime Type
text/plain
Expires
Thu, Dec 5, 2:28 AM (7 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614240
Default Alt Text
D7951.id26992.diff (2 KB)

Event Timeline