chore: move state props to ISelectedUsersViewProps

This commit is contained in:
GleidsonDaniel 2021-12-21 17:01:33 -03:00
parent 010676aa85
commit dc83f76843
1 changed files with 9 additions and 11 deletions

View File

@ -29,7 +29,15 @@ import sharedStyles from './Styles';
const ITEM_WIDTH = 250;
const getItemLayout = (_: any, index: number) => ({ length: ITEM_WIDTH, offset: ITEM_WIDTH * index, index });
type State = {
interface ISelectedUsersViewState {
maxUsers?: number;
search: IUser[];
chats: IUser[];
}
interface ISelectedUsersViewProps extends BaseScreen {
route: RouteProp<ChatsStackParamList, 'SelectedUsersView'>;
// REDUX STATE
users: IUser[];
loading: boolean;
user: {
@ -39,16 +47,6 @@ type State = {
name: string;
};
baseUrl: string;
};
interface ISelectedUsersViewState {
maxUsers?: number;
search: IUser[];
chats: IUser[];
}
interface ISelectedUsersViewProps extends BaseScreen, State {
route: RouteProp<ChatsStackParamList, 'SelectedUsersView'>;
}
class SelectedUsersView extends React.Component<ISelectedUsersViewProps, ISelectedUsersViewState> {