Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
welcome screen: add analytics to mini avatar upload
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed May 9, 2022
1 parent b6b9d67 commit d5f22b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/structures/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ const UserWelcomeTop = () => {
hasAvatar={!!ownProfile.avatarUrl}
hasAvatarLabel={_tDom("Great, that'll help people know it's you")}
noAvatarLabel={_tDom("Add a photo so people know it's you.")}
setAvatarUrl={url => cli.setAvatarUrl(url)}
setAvatarUrl={async url => {
PosthogTrackers.trackInteraction("WebHomeMiniAvatarUploadButton");
await cli.setAvatarUrl(url);
}}
isUserAvatar
>
<BaseAvatar
Expand Down

0 comments on commit d5f22b3

Please sign in to comment.