From f88a6fa40ba3e26709bf2586e417472ff2a8e5d4 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Wed, 15 Sep 2021 09:28:55 -0400 Subject: [PATCH] Fix lint --- app/views/RoomActionsView/index.js | 64 +++++++++++++++--------------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/app/views/RoomActionsView/index.js b/app/views/RoomActionsView/index.js index 184d21327..1e67eed33 100644 --- a/app/views/RoomActionsView/index.js +++ b/app/views/RoomActionsView/index.js @@ -930,9 +930,7 @@ class RoomActionsView extends React.Component { canForwardGuest, canReturnQueue } = this.state; - const { - rid, t, prid - } = room; + const { rid, t, prid } = room; const isGroupChat = RocketChat.isGroupChat(room); return ( @@ -990,22 +988,22 @@ class RoomActionsView extends React.Component { this.onPressTouchable({ route: 'InviteUsersView', params: { rid } - })} - testID='room-actions-invite-user' - left={() => } - showActionIndicator - /> - - - ) - : null} + }) + } + testID='room-actions-invite-user' + left={() => } + showActionIndicator + /> + + + ) : null} - {['c', 'p', 'd'].includes(t) && !prid - ? ( - <> - this.onPressTouchable({ + {['c', 'p', 'd'].includes(t) && !prid ? ( + <> + + this.onPressTouchable({ route: 'DiscussionMessagesView', params: { rid, @@ -1016,22 +1014,22 @@ class RoomActionsView extends React.Component { autoTranslateLanguage: room.autoTranslateLanguage, navToRoomInfo: navParam => this.navToRoomInfo(navParam) } - })} - testID='room-actions-discussions' - left={() => } - showActionIndicator - /> - - - ) - : null} + }) + } + testID='room-actions-discussions' + left={() => } + showActionIndicator + /> + + + ) : null} - {['c', 'p', 'd'].includes(t) - ? ( - <> - this.onPressTouchable({ + {['c', 'p', 'd'].includes(t) ? ( + <> + + this.onPressTouchable({ route: 'MessagesView', params: { rid, t, name: 'Files' } })