Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-cp committed Apr 26, 2024
1 parent d5d1fd5 commit 0f65b61
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions apps/mobile/src/components/ProfilePicture/ProfilePicture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ export function ProfilePicture({ userRef, style, ...rest }: ProfilePictureProps)
return (
<ReportingErrorBoundary fallback={fallbackProfilePicture}>
<ValidProfilePicture
style={style}
tokenRef={token}
eventElementId={null}
eventName={null}
eventElementId="ProfilePicture"
eventName="ProfilePicture pressed"
// TODO analytics prop drill
eventContext={null}
tokenRef={token}
style={style}
{...rest}
/>
</ReportingErrorBoundary>
Expand All @@ -116,12 +117,5 @@ function ValidProfilePicture({ tokenRef, style, ...rest }: ValidProfilePicturePr

const imageUrl = useGetSinglePreviewImage({ tokenRef: token, size: 'small' }) ?? '';

return (
<RawProfilePicture
// TODO analytics prop drill
imageUrl={imageUrl}
style={style}
{...rest}
/>
);
return <RawProfilePicture imageUrl={imageUrl} style={style} {...rest} />;
}

0 comments on commit 0f65b61

Please sign in to comment.