From 4e525cd44f30114565504b43a19718504efaff27 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 14 Mar 2024 14:51:45 -0500 Subject: [PATCH] Show metrics if self --- src/screens/Profile/Header/ProfileHeaderLabeler.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx index b7f89ab369..0eeedc66d4 100644 --- a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx +++ b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx @@ -32,6 +32,7 @@ import {ProfileHeaderShell} from './Shell' import {ProfileMenu} from '#/view/com/profile/ProfileMenu' import {ProfileHeaderDisplayName} from './DisplayName' import {ProfileHeaderHandle} from './Handle' +import {ProfileHeaderMetrics} from './Metrics' import { Heart2_Stroke2_Corner0_Rounded as Heart, Heart2_Filled_Stroke2_Corner0_Rounded as HeartFilled, @@ -65,6 +66,7 @@ let ProfileHeaderLabeler = ({ const {openModal} = useModalControls() const {track} = useAnalytics() const cantSubscribePrompt = Prompt.usePromptControl() + const isSelf = currentAccount?.did === profile.did const moderation = useMemo( () => moderateProfile(profile, moderationOpts), @@ -207,6 +209,7 @@ let ProfileHeaderLabeler = ({ {!isPlaceholderProfile && ( <> + {isSelf && } {descriptionRT && !moderation.ui('profileView').blur ? (