aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-05 15:29:11 -0400
committerIvan Chen <ivan@tagg.id>2021-04-05 15:29:11 -0400
commit88d1ec9dff5674e8759ca33e4255af16b4bf51a5 (patch)
tree31c29a1b9e394b44c6f2c28e1166a0f81897540d /src
parent3cfe069327a0179e8fd7f0b94662765f1ec6bd8b (diff)
code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/components/messages/MessagesHeader.tsx4
-rw-r--r--src/screens/chat/ChatListScreen.tsx1
2 files changed, 1 insertions, 4 deletions
diff --git a/src/components/messages/MessagesHeader.tsx b/src/components/messages/MessagesHeader.tsx
index 3b8144f7..d8445580 100644
--- a/src/components/messages/MessagesHeader.tsx
+++ b/src/components/messages/MessagesHeader.tsx
@@ -16,9 +16,7 @@ const MessagesHeader: React.FC<MessagesHeaderProps> = ({createChannel}) => {
<View style={styles.flex} />
<TouchableOpacity
style={styles.compose}
- onPress={() => {
- createChannel();
- }}>
+ onPress={createChannel}>
<Text>Compose</Text>
</TouchableOpacity>
</View>
diff --git a/src/screens/chat/ChatListScreen.tsx b/src/screens/chat/ChatListScreen.tsx
index 8bced236..8fa6998c 100644
--- a/src/screens/chat/ChatListScreen.tsx
+++ b/src/screens/chat/ChatListScreen.tsx
@@ -68,7 +68,6 @@ const ChatListScreen: React.FC<ChatListScreenProps> = ({navigation}) => {
<ChannelList
filters={memoizedFilters}
onSelect={(channel) => {
- // TODO: (CHAT) fix type issue
setChannel(channel);
navigation.navigate('Chat');
}}