Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [Search v1] No background color placeholder exists for receipt thumbnail. #43631

Merged
merged 3 commits into from
Jun 17, 2024
Merged
Changes from 1 commit
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 @@ -69,7 +69,14 @@ function ReceiptCell({transactionItem}: TransactionCellProps) {
const StyleUtils = useStyleUtils();

return (
<View style={[StyleUtils.getWidthAndHeightStyle(variables.h36, variables.w40), StyleUtils.getBorderRadiusStyle(variables.componentBorderRadiusSmall), styles.overflowHidden]}>
<View
style={[
StyleUtils.getWidthAndHeightStyle(variables.h36, variables.w40),
StyleUtils.getBorderRadiusStyle(variables.componentBorderRadiusSmall),
styles.overflowHidden,
{backgroundColor: theme.border},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use StyleUtils.getBackgroundColorStyle

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luacmartins, updated.

]}
>
<ReceiptImage
source={tryResolveUrlFromApiRoot(transactionItem?.receipt?.source ?? '')}
isEReceipt={transactionItem.hasEReceipt}
Expand Down
Loading