Page MenuHomePhabricator

D13987.id.diff
No OneTemporary

D13987.id.diff

diff --git a/native/navigation/community-drawer-content.react.js b/native/navigation/community-drawer-content.react.js
--- a/native/navigation/community-drawer-content.react.js
+++ b/native/navigation/community-drawer-content.react.js
@@ -169,6 +169,26 @@
</TouchableOpacity>
);
+ let exploreCommunitiesButton;
+ if (__DEV__) {
+ exploreCommunitiesButton = (
+ <TouchableOpacity activeOpacity={0.4}>
+ <View style={styles.exploreCommunitiesContainer}>
+ <View style={styles.exploreCommunitiesIconContainer}>
+ <SWMansionIcon
+ name="search"
+ size={22}
+ style={styles.exploreCommunitiesIcon}
+ />
+ </View>
+ <Text style={styles.exploreCommunitiesText}>Explore communities</Text>
+ </View>
+ </TouchableOpacity>
+ );
+ } else {
+ exploreCommunitiesButton = null;
+ }
+
const flattenedDrawerItemsData = React.useMemo(
() => flattenDrawerItemsData(drawerItemsData, [...expanded.values()]),
[drawerItemsData, expanded],
@@ -182,6 +202,7 @@
initialNumToRender={30}
/>
{communityCreationButton}
+ {exploreCommunitiesButton}
</SafeAreaView>
);
}
@@ -195,7 +216,7 @@
},
communityCreationContainer: {
flexDirection: 'row',
- padding: 24,
+ padding: 16,
alignItems: 'center',
borderTopWidth: 1,
borderColor: 'panelSeparator',
@@ -218,6 +239,30 @@
communityCreationIcon: {
color: 'panelForegroundLabel',
},
+ exploreCommunitiesContainer: {
+ flexDirection: 'row',
+ paddingTop: 0,
+ padding: 16,
+ alignItems: 'center',
+ },
+ exploreCommunitiesText: {
+ color: 'panelForegroundLabel',
+ fontSize: 16,
+ lineHeight: 24,
+ fontWeight: '500',
+ },
+ exploreCommunitiesIconContainer: {
+ height: 28,
+ width: 28,
+ justifyContent: 'center',
+ alignItems: 'center',
+ borderRadius: 16,
+ marginRight: 12,
+ backgroundColor: 'panelSecondaryForeground',
+ },
+ exploreCommunitiesIcon: {
+ color: 'panelForegroundLabel',
+ },
};
const labelUnboundStyles = {
level0Label: {

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 1:14 AM (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559250
Default Alt Text
D13987.id.diff (2 KB)

Event Timeline