From bc92a4f29ded142dc42c1a4b2dd26e9601ba0826 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Wed, 29 Dec 2021 18:44:04 -0300 Subject: [PATCH] chore: update IBaseScreen definitions --- app/definitions/index.ts | 2 ++ app/views/SelectedUsersView.tsx | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/definitions/index.ts b/app/definitions/index.ts index d8af539fd..f9ca20d4a 100644 --- a/app/definitions/index.ts +++ b/app/definitions/index.ts @@ -1,8 +1,10 @@ +import { RouteProp } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; import { Dispatch } from 'redux'; export interface IBaseScreen, S extends string> { navigation: StackNavigationProp; + route: RouteProp; dispatch: Dispatch; theme: string; } diff --git a/app/views/SelectedUsersView.tsx b/app/views/SelectedUsersView.tsx index 8962555f3..85311154e 100644 --- a/app/views/SelectedUsersView.tsx +++ b/app/views/SelectedUsersView.tsx @@ -1,5 +1,4 @@ import { Q } from '@nozbe/watermelondb'; -import { RouteProp } from '@react-navigation/native'; import orderBy from 'lodash/orderBy'; import React from 'react'; import { FlatList, View } from 'react-native'; @@ -36,8 +35,7 @@ interface ISelectedUsersViewState { chats: ISelectedUser[]; } -interface ISelectedUsersViewProps extends IBaseScreen { - route: RouteProp; +interface ISelectedUsersViewProps extends IBaseScreen { // REDUX STATE users: ISelectedUser[]; loading: boolean;