Skip to content

Commit ec1f746

Browse files
committed
Code cleanup
1 parent 095c8a0 commit ec1f746

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

  • src/pages/iou/request/step/IOURequestStepScan/components/ReceiptPreviews

src/pages/iou/request/step/IOURequestStepScan/components/ReceiptPreviews/SubmitButtonShadow/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import {View} from 'react-native';
33
import useThemeStyles from '@hooks/useThemeStyles';
44
import type {SubmitButtonShadowProps} from './types';
55

6-
// isInLandscapeMode is only used on native platforms.
7-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8-
function SubmitButtonShadow({children, isInLandscapeMode}: SubmitButtonShadowProps) {
6+
function SubmitButtonShadow({children}: SubmitButtonShadowProps) {
97
const styles = useThemeStyles();
108

119
return <View style={[styles.receiptsSubmitButton, styles.buttonShadowContainer, styles.webButtonShadow]}>{children}</View>;

src/pages/iou/request/step/IOURequestStepScan/components/ReceiptPreviews/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function useReceiptPreviewsSizes(isInLandscapeMode: boolean) {
4949
const initialReceiptsAmount = (windowHeight - submitButtonHeight - tabSelectorButtonHeight - contentHeaderHeight) / previewItemSize;
5050

5151
return {
52-
previewsSize: styles.receiptPlaceholder.width + styles.ph6.paddingHorizontal * 2,
52+
previewsSize: styles.receiptPlaceholderLandscape.width + styles.ph6.paddingHorizontal * 2,
5353
previewItemSize,
5454
initialReceiptsAmount,
5555
};
@@ -160,6 +160,7 @@ function ReceiptPreviews({submit, isMultiScanEnabled, isCapturingPhoto = false,
160160
style={isInLandscapeMode ? styles.ph2 : styles.pv2}
161161
scrollEnabled={isScrollEnabled}
162162
showsHorizontalScrollIndicator={false}
163+
showsVerticalScrollIndicator={false}
163164
contentContainerStyle={
164165
isInLandscapeMode ? [{paddingBottom: styles.singleAvatarMedium.height}, styles.ph4] : [{paddingRight: styles.singleAvatarMedium.width}, styles.pl4]
165166
}

0 commit comments

Comments
 (0)