Skip to content

Commit

Permalink
Fix reportdetails view for chatrooms and policyExpenseChats
Browse files Browse the repository at this point in the history
  • Loading branch information
Amal Nazeem committed Mar 3, 2022
1 parent 7a7cf3c commit 5030078
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/pages/ReportDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Str from 'expensify-common/lib/str';
import _ from 'underscore';
import {View, ScrollView} from 'react-native';
import lodashGet from 'lodash/get';
import Avatar from '../components/Avatar';
import RoomHeaderAvatars from '../components/RoomHeaderAvatars';
import compose from '../libs/compose';
import withLocalize, {withLocalizePropTypes} from '../components/withLocalize';
import ONYXKEYS from '../ONYXKEYS';
Expand Down Expand Up @@ -132,11 +132,12 @@ class ReportDetailsPage extends Component {
<View
style={styles.reportDetailsTitleContainer}
>
<Avatar
containerStyles={[styles.singleAvatarLarge, styles.mb4]}
imageStyles={[styles.singleAvatarLarge]}
source={_.first(OptionsListUtils.getAvatarSources(this.props.report))}
/>
<View style={styles.mb4} >
<RoomHeaderAvatars
avatarIcons={OptionsListUtils.getAvatarSources(this.props.report)}
shouldShowLargeAvatars={isPolicyExpenseChat}
/>
</View>
<View style={[styles.reportDetailsRoomInfo, styles.mw100]}>
<View style={[styles.alignSelfCenter, styles.w100]}>
<DisplayNames
Expand Down
2 changes: 1 addition & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ const styles = {
...flex.flexColumn,
...flex.alignItemsCenter,
...spacing.mt4,
height: 150,
height: 170,
},

reportDetailsRoomInfo: {
Expand Down

0 comments on commit 5030078

Please sign in to comment.