From 59be3b68b88000e91e6b0ce6fa0e9bf74c33d8c0 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Wed, 11 May 2022 14:38:49 -0300 Subject: [PATCH] Chore: Evaluate AddExistingChannelView - TypeScript (#4169) --- app/views/AddExistingChannelView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/AddExistingChannelView.tsx b/app/views/AddExistingChannelView.tsx index 68e5a0dc..a666bd25 100644 --- a/app/views/AddExistingChannelView.tsx +++ b/app/views/AddExistingChannelView.tsx @@ -21,7 +21,7 @@ import { goRoom } from '../utils/goRoom'; import { showErrorAlert } from '../utils/info'; import debounce from '../utils/debounce'; import { ChatsStackParamList } from '../stacks/types'; -import { TSubscriptionModel, SubscriptionType } from '../definitions'; +import { TSubscriptionModel, SubscriptionType, IApplicationState } from '../definitions'; import { getRoomTitle, hasPermission } from '../lib/methods'; import { Services } from '../lib/services'; @@ -37,7 +37,7 @@ interface IAddExistingChannelViewProps { route: RouteProp; theme: TSupportedThemes; isMasterDetail: boolean; - addTeamChannelPermission: string[]; + addTeamChannelPermission?: string[]; } const QUERY_SIZE = 50; @@ -222,7 +222,7 @@ class AddExistingChannelView extends React.Component ({ +const mapStateToProps = (state: IApplicationState) => ({ isMasterDetail: state.app.isMasterDetail, addTeamChannelPermission: state.permissions['add-team-channel'] });