[FIX] Header title of RoomInfoView (#1553)
This commit is contained in:
parent
8ff6a3a27e
commit
8f14cbe25a
|
@ -428,6 +428,7 @@ export default {
|
||||||
Upload_file_question_mark: 'Upload file?',
|
Upload_file_question_mark: 'Upload file?',
|
||||||
Users: 'Users',
|
Users: 'Users',
|
||||||
User_added_by: 'User {{userAdded}} added by {{userBy}}',
|
User_added_by: 'User {{userAdded}} added by {{userBy}}',
|
||||||
|
User_Info: 'User Info',
|
||||||
User_has_been_key: 'User has been {{key}}!',
|
User_has_been_key: 'User has been {{key}}!',
|
||||||
User_is_no_longer_role_by_: '{{user}} is no longer {{role}} by {{userBy}}',
|
User_is_no_longer_role_by_: '{{user}} is no longer {{role}} by {{userBy}}',
|
||||||
User_muted_by: 'User {{userMuted}} muted by {{userBy}}',
|
User_muted_by: 'User {{userMuted}} muted by {{userBy}}',
|
||||||
|
|
|
@ -37,8 +37,9 @@ class RoomInfoView extends React.Component {
|
||||||
static navigationOptions = ({ navigation, screenProps }) => {
|
static navigationOptions = ({ navigation, screenProps }) => {
|
||||||
const showEdit = navigation.getParam('showEdit');
|
const showEdit = navigation.getParam('showEdit');
|
||||||
const rid = navigation.getParam('rid');
|
const rid = navigation.getParam('rid');
|
||||||
|
const t = navigation.getParam('t');
|
||||||
return {
|
return {
|
||||||
title: I18n.t('Room_Info'),
|
title: t === 'd' ? I18n.t('User_Info') : I18n.t('Room_Info'),
|
||||||
...themedHeader(screenProps.theme),
|
...themedHeader(screenProps.theme),
|
||||||
headerRight: showEdit
|
headerRight: showEdit
|
||||||
? (
|
? (
|
||||||
|
|
Loading…
Reference in New Issue