diff --git a/src/pages/Search/EmptySearchView.tsx b/src/pages/Search/EmptySearchView.tsx index 462bb507c04a..3bd9a243af13 100644 --- a/src/pages/Search/EmptySearchView.tsx +++ b/src/pages/Search/EmptySearchView.tsx @@ -1,6 +1,6 @@ import React, {useMemo, useRef, useState} from 'react'; // eslint-disable-next-line no-restricted-imports -import type {GestureResponderEvent, Text as RNText} from 'react-native'; +import type {GestureResponderEvent, ImageStyle, Text as RNText, ViewStyle} from 'react-native'; import {Linking, View} from 'react-native'; import {useOnyx} from 'react-native-onyx'; import type {OnyxCollection} from 'react-native-onyx'; @@ -144,11 +144,11 @@ function EmptySearchView({type, hasResults}: EmptySearchViewProps) { case CONST.SEARCH.DATA_TYPES.TRIP: return { headerMedia: LottieAnimations.TripsEmptyState, - headerContentStyles: [StyleUtils.getWidthAndHeightStyle(375, 240), StyleUtils.getBackgroundColorStyle(theme.travelBG)], + headerContentStyles: [styles.emptyStateFolderWebStyles, StyleUtils.getBackgroundColorStyle(theme.travelBG)], title: translate('travel.title'), titleStyles: {...styles.textAlignLeft}, children: tripViewChildren, - lottieWebViewStyles: {backgroundColor: theme.travelBG, ...styles.emptyStateFolderWebStyles}, + lottieWebViewStyles: {backgroundColor: theme.travelBG, ...styles.emptyStateFolderWebStyles, ...styles.tripEmptyStateLottieWebView}, }; case CONST.SEARCH.DATA_TYPES.EXPENSE: if (!hasResults) { @@ -247,6 +247,7 @@ function EmptySearchView({type, hasResults}: EmptySearchViewProps) { translate, styles.textAlignLeft, styles.emptyStateFolderWebStyles, + styles.tripEmptyStateLottieWebView, tripViewChildren, hasSeenTour, navatticURL, @@ -272,7 +273,7 @@ function EmptySearchView({type, hasResults}: EmptySearchViewProps) { titleStyles={content.titleStyles} subtitle={content.subtitle} buttons={content.buttons} - headerContentStyles={[styles.h100, styles.w100, ...content.headerContentStyles]} + headerContentStyles={[styles.h100, styles.w100, ...content.headerContentStyles] as Array} lottieWebViewStyles={content.lottieWebViewStyles} > {content.children} diff --git a/src/styles/index.ts b/src/styles/index.ts index ec484c200df4..cd50aadb119a 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -5628,6 +5628,11 @@ const styles = (theme: ThemeColors) => ...display.dFlex, }, + tripEmptyStateLottieWebView: { + width: 335, + height: 220, + }, + workflowApprovalVerticalLine: { height: 16, width: 1,