diff --git a/src/components/AvatarWithDisplayName.tsx b/src/components/AvatarWithDisplayName.tsx index 8942bf97a7dd..9c7e26dacb6b 100644 --- a/src/components/AvatarWithDisplayName.tsx +++ b/src/components/AvatarWithDisplayName.tsx @@ -13,6 +13,7 @@ import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; import type {PersonalDetails, Policy, Report, ReportActions} from '@src/types/onyx'; +import CaretWrapper from './CaretWrapper'; import DisplayNames from './DisplayNames'; import MultipleAvatars from './MultipleAvatars'; import ParentNavigationSubtitle from './ParentNavigationSubtitle'; @@ -129,14 +130,16 @@ function AvatarWithDisplayName({ )} - + + + {Object.keys(parentNavigationSubtitleData).length > 0 && ( + {children} + + + ); +} + +export default CaretWrapper; diff --git a/src/pages/home/HeaderView.tsx b/src/pages/home/HeaderView.tsx index b16fb86f9b21..40f1a76fdb5b 100644 --- a/src/pages/home/HeaderView.tsx +++ b/src/pages/home/HeaderView.tsx @@ -3,6 +3,7 @@ import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import {withOnyx} from 'react-native-onyx'; import Button from '@components/Button'; +import CaretWrapper from '@components/CaretWrapper'; import ConfirmModal from '@components/ConfirmModal'; import DisplayNames from '@components/DisplayNames'; import type {ThreeDotsMenuItem} from '@components/HeaderWithBackButton/types'; @@ -272,15 +273,17 @@ function HeaderView({ )} - + + + {!isEmptyObject(parentNavigationSubtitleData) && (