Skip to content

Commit

Permalink
remove shouldShowLargeAvatars
Browse files Browse the repository at this point in the history
  • Loading branch information
dangrous committed Jan 13, 2023
1 parent 679476f commit 4aee6b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
24 changes: 2 additions & 22 deletions src/components/RoomHeaderAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,12 @@ const RoomHeaderAvatars = (props) => {
);
}

if (props.shouldShowLargeAvatars) {
return (
<View style={[styles.flexRow, styles.wAuto, styles.justifyContentCenter, styles.alignItemsCenter]}>
<View style={styles.leftSideLargeAvatar}>
<Avatar
source={props.icons[1]}
imageStyles={[styles.avatarLarge]}
size={CONST.AVATAR_SIZE.LARGE}
fill={themeColors.iconSuccessFill}
/>
</View>
<View style={[styles.rightSideLargeAvatar, StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)]}>
<Avatar
source={props.icons[0]}
imageStyles={[styles.avatarLarge]}
size={CONST.AVATAR_SIZE.LARGE}
/>
</View>
</View>
);
}

const iconsToDisplay = props.icons.slice(0, CONST.REPORT.MAX_PREVIEW_AVATARS);

const iconStyle = [
styles.roomHeaderAvatar,

// Because the border is applied to the Avatars when there are multiple they need to be slightly larger to match size
StyleUtils.getAvatarStyle(CONST.AVATAR_SIZE.LARGE_BORDERED),
];
return (
Expand Down
1 change: 0 additions & 1 deletion src/pages/home/report/ReportActionItemCreated.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const ReportActionItemCreated = (props) => {
<Pressable onPress={() => ReportUtils.navigateToDetailsPage(props.report)}>
<RoomHeaderAvatars
icons={icons}
shouldShowLargeAvatars={isPolicyExpenseChat}
/>
</Pressable>
<ReportWelcomeText report={props.report} />
Expand Down

0 comments on commit 4aee6b7

Please sign in to comment.