Skip to content

Commit

Permalink
Merge pull request #53199 from software-mansion-labs/@szymczak/fix-ba…
Browse files Browse the repository at this point in the history
…ckground-bug
  • Loading branch information
blimpich authored Dec 3, 2024
2 parents 0c13d2a + b3d8aa2 commit 28e63c0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/pages/Search/EmptySearchView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ function EmptySearchView({type}: EmptySearchViewProps) {
case CONST.SEARCH.DATA_TYPES.TRIP:
return {
headerMedia: LottieAnimations.TripsEmptyState,
headerStyles: StyleUtils.getBackgroundColorStyle(theme.travelBG),
headerContentStyles: StyleUtils.getWidthAndHeightStyle(375, 240),
headerContentStyles: [StyleUtils.getWidthAndHeightStyle(375, 240), StyleUtils.getBackgroundColorStyle(theme.travelBG)],
title: translate('travel.title'),
titleStyles: {...styles.textAlignLeft},
subtitle: subtitleComponent,
Expand All @@ -133,11 +132,11 @@ function EmptySearchView({type}: EmptySearchViewProps) {
success: true,
},
],
lottieWebViewStyles: {backgroundColor: theme.travelBG, ...styles.emptyStateFolderWebStyles},
};
case CONST.SEARCH.DATA_TYPES.EXPENSE:
return {
headerMedia: LottieAnimations.GenericEmptyState,
headerStyles: [StyleUtils.getBackgroundColorStyle(theme.emptyFolderBG)],
title: translate('search.searchResults.emptyExpenseResults.title'),
subtitle: translate('search.searchResults.emptyExpenseResults.subtitle'),
buttons: [
Expand Down Expand Up @@ -166,17 +165,18 @@ function EmptySearchView({type}: EmptySearchViewProps) {
success: true,
},
],
headerContentStyles: styles.emptyStateFolderWebStyles,
headerContentStyles: [styles.emptyStateFolderWebStyles, StyleUtils.getBackgroundColorStyle(theme.emptyFolderBG)],
lottieWebViewStyles: {backgroundColor: theme.emptyFolderBG, ...styles.emptyStateFolderWebStyles},
};
case CONST.SEARCH.DATA_TYPES.CHAT:
case CONST.SEARCH.DATA_TYPES.INVOICE:
default:
return {
headerMedia: LottieAnimations.GenericEmptyState,
headerStyles: [StyleUtils.getBackgroundColorStyle(theme.emptyFolderBG)],
title: translate('search.searchResults.emptyResults.title'),
subtitle: translate('search.searchResults.emptyResults.subtitle'),
headerContentStyles: styles.emptyStateFolderWebStyles,
headerContentStyles: [styles.emptyStateFolderWebStyles, StyleUtils.getBackgroundColorStyle(theme.emptyFolderBG)],
lottieWebViewStyles: {backgroundColor: theme.emptyFolderBG, ...styles.emptyStateFolderWebStyles},
};
}
}, [
Expand All @@ -188,11 +188,11 @@ function EmptySearchView({type}: EmptySearchViewProps) {
styles.textAlignLeft,
styles.emptyStateFolderWebStyles,
subtitleComponent,
hasSeenTour,
ctaErrorMessage,
navatticURL,
shouldRedirectToExpensifyClassic,
hasSeenTour,
viewTourTaskReport,
shouldRedirectToExpensifyClassic,
]);

return (
Expand All @@ -201,13 +201,13 @@ function EmptySearchView({type}: EmptySearchViewProps) {
SkeletonComponent={SearchRowSkeleton}
headerMediaType={CONST.EMPTY_STATE_MEDIA.ANIMATION}
headerMedia={content.headerMedia}
headerStyles={[content.headerStyles, styles.emptyStateCardIllustrationContainer]}
headerStyles={[styles.emptyStateCardIllustrationContainer, styles.overflowHidden]}
title={content.title}
titleStyles={content.titleStyles}
subtitle={content.subtitle}
buttons={content.buttons}
headerContentStyles={[styles.h100, styles.w100, content.headerContentStyles]}
lottieWebViewStyles={styles.emptyStateFolderWebStyles}
headerContentStyles={[styles.h100, styles.w100, ...content.headerContentStyles]}
lottieWebViewStyles={content.lottieWebViewStyles}
/>
<ConfirmModal
prompt={translate('sidebarScreen.redirectToExpensifyClassicModal.description')}
Expand Down

0 comments on commit 28e63c0

Please sign in to comment.