[Gekidou] bug fixes found with e2e tests (#6130)

* Fix Search users in Create Direct Message

* Fix UserListRow style for onPress

* Prevent create direct message & browse channels from being dismissed with a swipe

* Only display Edit header option when tapping in the channel intro

* Fix localization for ThreadFollowButton

* Prevent New channel screen from being dismiss with a swipe
This commit is contained in:
Elias Nahum
2022-04-07 09:57:43 -04:00
committed by GitHub
parent b5c53d769f
commit ae3c9e2ef2
9 changed files with 22 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import {updateThreadFollowing} from '@actions/remote/thread';
import FormattedText from '@components/formatted_text';
import {useServerUrl} from '@context/server';
import {useTheme} from '@context/theme';
import {t} from '@i18n';
import {preventDoubleTap} from '@utils/tap';
import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
import {typography} from '@utils/typography';
@@ -60,13 +61,13 @@ function ThreadFollow({isFollowing, teamId, threadId}: Props) {
const containerStyle = [styles.container];
let followTextProps = {
id: 'threads.follow',
id: t('threads.follow'),
defaultMessage: 'Follow',
};
if (isFollowing) {
containerStyle.push(styles.containerActive);
followTextProps = {
id: 'threads.following',
id: t('threads.following'),
defaultMessage: 'Following',
};
}