Page MenuHomePhabricator

D3897.diff
No OneTemporary

D3897.diff

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

Mime Type
text/plain
Expires
Sun, Nov 24, 9:29 AM (16 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2574830
Default Alt Text
D3897.diff (1 KB)

Event Timeline