[FIX] UI issues of Create Discussion View (#1965)
This commit is contained in:
parent
d8c8817f04
commit
ece8f44f5a
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue