[FIX] UI issues of Create Discussion View (#1965)

This commit is contained in:
Prateek Jain 2020-04-01 17:37:03 +05:30 committed by GitHub
parent d8c8817f04
commit ece8f44f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import { avatarURL } from '../../utils/avatar';
import RocketChat from '../../lib/rocketchat';
import I18n from '../../i18n';
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
import { themes } from '../../constants/colors';
import styles from './styles';
@ -30,7 +31,7 @@ const SelectChannel = ({
return (
<>
<Text style={styles.label}>{I18n.t('Parent_channel_or_group')}</Text>
<Text style={[styles.label, { color: themes[theme].titleText }]}>{I18n.t('Parent_channel_or_group')}</Text>
<MultiSelect
theme={theme}
inputStyle={styles.inputStyle}

View File

@ -10,6 +10,7 @@ import I18n from '../../i18n';
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
import styles from './styles';
import { themes } from '../../constants/colors';
const SelectUsers = ({
server, token, userId, selected, onUserSelect, theme
@ -31,7 +32,7 @@ const SelectUsers = ({
return (
<>
<Text style={styles.label}>{I18n.t('Invite_users')}</Text>
<Text style={[styles.label, { color: themes[theme].titleText }]}>{I18n.t('Invite_users')}</Text>
<MultiSelect
theme={theme}
inputStyle={styles.inputStyle}

View File

@ -154,6 +154,7 @@ class CreateChannelView extends React.Component {
containerStyle={styles.inputStyle}
defaultValue={name}
onChangeText={text => this.setState({ name: text })}
theme={theme}
/>
<SelectUsers
server={server}
@ -165,6 +166,7 @@ class CreateChannelView extends React.Component {
/>
<TextInput
multiline
textAlignVertical='top'
label={I18n.t('Your_message')}
inputStyle={styles.multiline}
theme={theme}