@@ -7,11 +7,13 @@ import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
7
7
import type { SearchQueryJSON } from '@components/Search/types' ;
8
8
import Text from '@components/Text' ;
9
9
import useSingleExecution from '@hooks/useSingleExecution' ;
10
+ import useStyleUtils from '@hooks/useStyleUtils' ;
10
11
import useTheme from '@hooks/useTheme' ;
11
12
import useThemeStyles from '@hooks/useThemeStyles' ;
12
13
import useWindowDimensions from '@hooks/useWindowDimensions' ;
13
14
import * as SearchActions from '@libs/actions/Search' ;
14
15
import Navigation from '@libs/Navigation/Navigation' ;
16
+ import variables from '@styles/variables' ;
15
17
import * as Expensicons from '@src/components/Icon/Expensicons' ;
16
18
import * as SearchUtils from '@src/libs/SearchUtils' ;
17
19
import ROUTES from '@src/ROUTES' ;
@@ -27,6 +29,7 @@ type SearchTypeMenuNarrowProps = {
27
29
function SearchTypeMenuNarrow ( { typeMenuItems, activeItemIndex, queryJSON, title} : SearchTypeMenuNarrowProps ) {
28
30
const theme = useTheme ( ) ;
29
31
const styles = useThemeStyles ( ) ;
32
+ const StyleUtils = useStyleUtils ( ) ;
30
33
const { singleExecution} = useSingleExecution ( ) ;
31
34
const { windowHeight} = useWindowDimensions ( ) ;
32
35
@@ -86,21 +89,23 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title}
86
89
onPress = { openMenu }
87
90
>
88
91
{ ( { hovered} ) => (
89
- < Animated . View style = { [ styles . tabSelectorButton , styles . tabBackground ( hovered , true , theme . border ) , styles . w100 ] } >
92
+ < Animated . View style = { [ styles . tabSelectorButton , styles . tabBackground ( hovered , true , theme . border ) , styles . w100 , StyleUtils . getHeight ( variables . componentSizeNormal ) ] } >
90
93
< View style = { [ styles . flexRow , styles . gap2 , styles . alignItemsCenter , titleViewStyles ] } >
91
94
< Icon
92
95
src = { menuIcon }
93
96
fill = { theme . icon }
97
+ small
94
98
/>
95
99
< Text
96
100
numberOfLines = { 1 }
97
- style = { [ styles . textStrong , styles . flexShrink1 ] }
101
+ style = { [ styles . textStrong , styles . flexShrink1 , styles . fontSizeLabel ] }
98
102
>
99
103
{ menuTitle }
100
104
</ Text >
101
105
< Icon
102
106
src = { Expensicons . DownArrow }
103
107
fill = { theme . icon }
108
+ small
104
109
/>
105
110
</ View >
106
111
</ Animated . View >
0 commit comments