Skip to content

Commit

Permalink
separated Ereceipt and thumbnail logic
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Feb 5, 2024
1 parent 1f1b3dc commit 1fb6284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ReceiptImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ function ReceiptImage({transactionID, isThumbnail = false, shouldUseThumbnailIma
const styles = useThemeStyles();

if (isEReceipt || isThumbnail) {
const props = !isEReceipt && {borderRadius: style?.borderRadius, fileExtension, isReceiptThumbnail: true};
return (
<View style={style ?? [styles.w100, styles.h100]}>
<EReceiptThumbnail
transactionID={transactionID ?? ''}
borderRadius={style?.borderRadius}
fileExtension={fileExtension}
isReceiptThumbnail
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
</View>
);
Expand Down

0 comments on commit 1fb6284

Please sign in to comment.