[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 RocketChat from '../../lib/rocketchat';
|
||||||
import I18n from '../../i18n';
|
import I18n from '../../i18n';
|
||||||
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
|
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
|
||||||
|
import { themes } from '../../constants/colors';
|
||||||
|
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ const SelectChannel = ({
|
||||||
|
|
||||||
return (
|
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
|
<MultiSelect
|
||||||
theme={theme}
|
theme={theme}
|
||||||
inputStyle={styles.inputStyle}
|
inputStyle={styles.inputStyle}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import I18n from '../../i18n';
|
||||||
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
|
import { MultiSelect } from '../../containers/UIKit/MultiSelect';
|
||||||
|
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
import { themes } from '../../constants/colors';
|
||||||
|
|
||||||
const SelectUsers = ({
|
const SelectUsers = ({
|
||||||
server, token, userId, selected, onUserSelect, theme
|
server, token, userId, selected, onUserSelect, theme
|
||||||
|
@ -31,7 +32,7 @@ const SelectUsers = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Text style={styles.label}>{I18n.t('Invite_users')}</Text>
|
<Text style={[styles.label, { color: themes[theme].titleText }]}>{I18n.t('Invite_users')}</Text>
|
||||||
<MultiSelect
|
<MultiSelect
|
||||||
theme={theme}
|
theme={theme}
|
||||||
inputStyle={styles.inputStyle}
|
inputStyle={styles.inputStyle}
|
||||||
|
|
|
@ -154,6 +154,7 @@ class CreateChannelView extends React.Component {
|
||||||
containerStyle={styles.inputStyle}
|
containerStyle={styles.inputStyle}
|
||||||
defaultValue={name}
|
defaultValue={name}
|
||||||
onChangeText={text => this.setState({ name: text })}
|
onChangeText={text => this.setState({ name: text })}
|
||||||
|
theme={theme}
|
||||||
/>
|
/>
|
||||||
<SelectUsers
|
<SelectUsers
|
||||||
server={server}
|
server={server}
|
||||||
|
@ -165,6 +166,7 @@ class CreateChannelView extends React.Component {
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
multiline
|
multiline
|
||||||
|
textAlignVertical='top'
|
||||||
label={I18n.t('Your_message')}
|
label={I18n.t('Your_message')}
|
||||||
inputStyle={styles.multiline}
|
inputStyle={styles.multiline}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
|
|
Loading…
Reference in New Issue