Page MenuHomePhabricator

D13081.id43382.diff
No OneTemporary

D13081.id43382.diff

diff --git a/native/navigation/community-drawer-button-base.react.js b/native/navigation/community-drawer-button-base.react.js
new file mode 100644
--- /dev/null
+++ b/native/navigation/community-drawer-button-base.react.js
@@ -0,0 +1,19 @@
+// @flow
+
+import Icon from '@expo/vector-icons/Feather.js';
+import * as React from 'react';
+
+import { useStyles } from '../themes/colors.js';
+
+// eslint-disable-next-line no-unused-vars
+export default function CommunityDrawerButtonBase(props: { ... }): React.Node {
+ const styles = useStyles(unboundStyles);
+ return <Icon name="menu" size={26} style={styles.drawerButton} />;
+}
+
+const unboundStyles = {
+ drawerButton: {
+ color: 'listForegroundSecondaryLabel',
+ marginLeft: 16,
+ },
+};
diff --git a/native/navigation/community-drawer-tip.react.js b/native/navigation/community-drawer-tip.react.js
new file mode 100644
--- /dev/null
+++ b/native/navigation/community-drawer-tip.react.js
@@ -0,0 +1,20 @@
+// @flow
+
+import * as React from 'react';
+
+import CommunityDrawerButtonBase from './community-drawer-button-base.react.js';
+import {
+ type NUXTipsOverlayProps,
+ createNUXTipsOverlay,
+} from '../tooltip/nux-tips-overlay.react.js';
+
+const communityDrawerText =
+ 'You can use this view to explore the tree of channels ' +
+ 'inside a community. This shows you all of the channels you can see, ' +
+ "including ones you haven't joined.";
+
+const CommunityDrawerTip: React.ComponentType<
+ NUXTipsOverlayProps<'CommunityDrawerTip'>,
+> = createNUXTipsOverlay(CommunityDrawerButtonBase, communityDrawerText);
+
+export default CommunityDrawerTip;

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 12:24 PM (16 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534919
Default Alt Text
D13081.id43382.diff (1 KB)

Event Timeline