Chore: Evaluate UserItem - TypeScript (#3983)

* Chore: Evaluate UserItem - TypeScript

* fix storyshot

* minor tweaks

* tweaks on comments

* fix storyshot

* move useritem from presentation to containers

* remove comments
This commit is contained in:
Reinaldo Neto 2022-04-08 23:43:31 -03:00 committed by GitHub
parent 8268beeb67
commit 53eb251476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,7 @@
import React from 'react';
// @ts-ignore
import { Pressable, StyleProp, StyleSheet, Text, View, ViewStyle } from 'react-native';
import Avatar from '../containers/Avatar';
import Avatar from './Avatar';
import { CustomIcon } from '../lib/Icons';
import sharedStyles from '../views/Styles';
import { themes } from '../lib/constants';

View File

@ -11,7 +11,7 @@ import { removeUser } from '../actions/selectedUsers';
import KeyboardView from '../presentation/KeyboardView';
import scrollPersistTaps from '../utils/scrollPersistTaps';
import I18n from '../i18n';
import UserItem from '../presentation/UserItem';
import UserItem from '../containers/UserItem';
import * as HeaderButton from '../containers/HeaderButton';
import StatusBar from '../containers/StatusBar';
import { SWITCH_TRACK_COLOR, themes } from '../lib/constants';

View File

@ -19,7 +19,7 @@ import { CustomIcon } from '../lib/Icons';
import Navigation from '../lib/navigation/appNavigation';
import { compareServerVersion } from '../lib/methods/helpers/compareServerVersion';
import RocketChat from '../lib/rocketchat';
import UserItem from '../presentation/UserItem';
import UserItem from '../containers/UserItem';
import { withTheme } from '../theme';
import { goRoom } from '../utils/goRoom';
import log, { events, logEvent } from '../utils/log';

View File

@ -19,7 +19,7 @@ import database from '../../lib/database';
import { CustomIcon } from '../../lib/Icons';
import protectedFunction from '../../lib/methods/helpers/protectedFunction';
import RocketChat from '../../lib/rocketchat';
import UserItem from '../../presentation/UserItem';
import UserItem from '../../containers/UserItem';
import { getUserSelector } from '../../selectors/login';
import { ModalStackParamList } from '../../stacks/MasterDetailStack/types';
import { withTheme } from '../../theme';

View File

@ -17,7 +17,7 @@ import { IApplicationState, IBaseScreen, ISubscription, IUser } from '../definit
import I18n from '../i18n';
import database from '../lib/database';
import RocketChat from '../lib/rocketchat';
import UserItem from '../presentation/UserItem';
import UserItem from '../containers/UserItem';
import { ISelectedUser } from '../reducers/selectedUsers';
import { getUserSelector } from '../selectors/login';
import { ChatsStackParamList } from '../stacks/types';