Skip to content

Commit

Permalink
change onStatClick function
Browse files Browse the repository at this point in the history
  • Loading branch information
encryptedDegen committed Dec 23, 2024
1 parent b06efde commit acce6cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/user-profile-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const UserProfileCard: React.FC<UserProfileCardProps> = ({
) : profile?.address ? (
<ProfileCard
list={profileList}
onStatClick={({ stat }) => {
router.push(`/${profile.address}?tab=${stat}`)
}}
showFollowerState={true}
darkMode={resolvedTheme === 'dark'}
addressOrName={profile.address}
Expand Down

0 comments on commit acce6cf

Please sign in to comment.