Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3530138
D3897.id12292.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3897.id12292.diff
View Options
diff --git a/native/chat/inline-sidebar.react.js b/native/chat/inline-sidebar.react.js
--- a/native/chat/inline-sidebar.react.js
+++ b/native/chat/inline-sidebar.react.js
@@ -2,7 +2,6 @@
import * as React from 'react';
import { Text, View } from 'react-native';
-import Icon from 'react-native-vector-icons/Feather';
import useInlineSidebarText from 'lib/hooks/inline-sidebar-text.react';
import type { ThreadInfo } from 'lib/types/thread-types';
@@ -26,30 +25,12 @@
}, [navigateToThread, threadInfo]);
const styles = useStyles(unboundStyles);
- let viewerIcon, nonViewerIcon, alignStyle;
- if (props.positioning === 'right') {
- viewerIcon = <Icon name="corner-down-left" size={18} style={styles.icon} />;
- alignStyle = styles.rightAlign;
- } else if (props.positioning === 'left') {
- nonViewerIcon = (
- <Icon name="corner-down-right" size={18} style={styles.icon} />
- );
- alignStyle = styles.leftAlign;
- } else {
- nonViewerIcon = (
- <Icon name="corner-down-right" size={18} style={styles.icon} />
- );
- alignStyle = styles.centerAlign;
- }
-
const unreadStyle = threadInfo.currentUser.unread ? styles.unread : null;
return (
- <View style={[styles.content, alignStyle]}>
+ <View style={styles.content}>
<Button style={styles.sidebar} onPress={onPress}>
- {nonViewerIcon}
<Text style={[styles.name, unreadStyle]}>{repliesText}</Text>
- {viewerIcon}
</Button>
</View>
);
@@ -58,8 +39,6 @@
const unboundStyles = {
content: {
flexDirection: 'row',
- marginRight: 30,
- marginLeft: 10,
flex: 1,
height: inlineSidebarHeight,
},
@@ -82,15 +61,6 @@
paddingLeft: 4,
paddingRight: 2,
},
- leftAlign: {
- justifyContent: 'flex-start',
- },
- rightAlign: {
- justifyContent: 'flex-end',
- },
- centerAlign: {
- justifyContent: 'center',
- },
};
export default InlineSidebar;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 12:15 AM (11 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703457
Default Alt Text
D3897.id12292.diff (1 KB)
Attached To
Mode
D3897: [native] [chore] [ENG-530] remove arrows from inline sidebar
Attached
Detach File
Event Timeline
Log In to Comment