diff --git a/src/components/activity/AccountActivity.tsx b/src/components/activity/AccountActivity.tsx index 458bdb5c6..3821628bc 100644 --- a/src/components/activity/AccountActivity.tsx +++ b/src/components/activity/AccountActivity.tsx @@ -12,6 +12,7 @@ import { useGetReactionActivities, useGetTweetActivities, } from 'src/graphql/hooks' +import { useIsMyAddress } from '../auth/MyAccountsContext' import WriteSomething from '../posts/WriteSomething' import { Loading } from '../utils' import { createLoadMorePosts, FeedActivities } from './FeedActivities' @@ -119,6 +120,7 @@ const activityTabs = [ type ActivityTab = (typeof activityTabs)[number] const getTab = (tab: ActivityTab) => tab const OffchainAccountActivity = ({ address }: ActivitiesByAddressProps) => { + const isMyAddress = useIsMyAddress(address) const getActivityCounts = useGetActivityCounts() const router = useRouter() const [activeTab, setActiveTab] = useState('posts') @@ -173,10 +175,14 @@ const OffchainAccountActivity = ({ address }: ActivitiesByAddressProps) => { return ( -
- + {isMyAddress ? ( +
+ + +
+ ) : ( -
+ )}
{(tweetsCount > 0 || haveDisplayedTweetsTab) && (