Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function FirstHeaderRow<TItem extends ListItem>({
/>
</View>
</View>
<View style={[styles.flexShrink0, styles.mr3]}>
<View style={[styles.flexShrink0, shouldShowAction && styles.mr3]}>
<TotalCell
showTooltip
isLargeScreenWidth={false}
Expand Down Expand Up @@ -161,14 +161,14 @@ function ReportListItemHeader<TItem extends ListItem>({
const reportItem = item as unknown as ReportListItemType;
const {currentSearchHash} = useSearchContext();
const {translate} = useLocalize();
const {shouldUseNarrowLayout} = useResponsiveLayout();
const {isLargeScreenWidth} = useResponsiveLayout();
const thereIsFromAndTo = !!reportItem?.from && !!reportItem?.to;
const showArrowComponent = reportItem.type === CONST.REPORT.TYPE.IOU && thereIsFromAndTo;

const handleOnButtonPress = () => {
handleActionButtonPress(currentSearchHash, reportItem, () => onSelectRow(item));
};
return shouldUseNarrowLayout ? (
return !isLargeScreenWidth ? (
<View>
<FirstHeaderRow
item={item}
Expand Down