Fix the color for no results when there are no more channels to join (#6810)

This commit is contained in:
Elias Nahum 2022-12-01 21:32:14 +02:00 committed by GitHub
parent bbd9affaf6
commit 529d149a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,7 @@ import NoResultsWithTerm from '@components/no_results_with_term';
import {useTheme} from '@context/theme';
import {useKeyboardHeight} from '@hooks/device';
import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
import {typography} from '@utils/typography';
type Props = {
onEndReached: () => void;
@ -40,6 +41,10 @@ const getStyleFromTheme = makeStyleSheetFromTheme((theme: Theme) => {
alignItems: 'center' as const,
justifyContent: 'center' as const,
},
noResultText: {
color: changeOpacity(theme.centerChannelColor, 0.5),
...typography('Body', 600, 'Regular'),
},
separator: {
height: 1,
backgroundColor: changeOpacity(theme.centerChannelColor, 0.08),

View file

@ -21,6 +21,7 @@ import {t} from '@i18n';
import {dismissModal, setButtons} from '@screens/navigation';
import {alertErrorWithFallback} from '@utils/draft';
import {changeOpacity, getKeyboardAppearanceFromTheme, makeStyleSheetFromTheme} from '@utils/theme';
import {typography} from '@utils/typography';
import {displayUsername, filterProfilesMatchingTerm} from '@utils/user';
import SelectedUsers from './selected_users';
@ -68,8 +69,8 @@ const getStyleFromTheme = makeStyleSheetFromTheme((theme) => {
justifyContent: 'center',
},
noResultText: {
fontSize: 26,
color: changeOpacity(theme.centerChannelColor, 0.5),
...typography('Body', 600, 'Regular'),
},
};
});