diff --git a/src/components/CaretWrapper.tsx b/src/components/CaretWrapper.tsx index d34b17397670..a5c6525e908f 100644 --- a/src/components/CaretWrapper.tsx +++ b/src/components/CaretWrapper.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import type {ViewStyle} from 'react-native'; import {View} from 'react-native'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; @@ -7,14 +8,16 @@ import type ChildrenProps from '@src/types/utils/ChildrenProps'; import Icon from './Icon'; import * as Expensicons from './Icon/Expensicons'; -type CaretWrapperProps = ChildrenProps; +type CaretWrapperProps = ChildrenProps & { + style?: ViewStyle; +}; -function CaretWrapper({children}: CaretWrapperProps) { +function CaretWrapper({children, style}: CaretWrapperProps) { const theme = useTheme(); const styles = useThemeStyles(); return ( - + {children} - + - - {formattedFeedName} + + {formattedFeedName} {checkIfFeedConnectionIsBroken(flatAllCardsList(allFeedsCards, workspaceAccountID), selectedFeed) && (