Skip to content

Commit

Permalink
Merge pull request #10250 from Jarsen136/issue-10245
Browse files Browse the repository at this point in the history
fix: Clicking followed by should open followers tab
  • Loading branch information
vikiival committed May 14, 2024
2 parents a272831 + 8b2d44f commit 0c3951c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions components/profile/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,18 @@
<span class="text-sm text-k-grey">
{{ $t('profile.followedBy') }}:
</span>
<div class="flex -space-x-3">
<NuxtLink
v-for="(follower, index) in followers?.followers"
:key="index"
:to="`/${urlPrefix}/u/${formatAddress(follower.address, chainProperties.ss58Format)}`">
<NeoButton variant="text" no-shadow @click="onFollowersClick">
<div class="flex -space-x-3">
<NuxtImg
v-for="(follower, index) in followers?.followers"
:key="index"
:src="follower.image"
alt="follower avatar"
class="w-8 h-8 rounded-full border object-cover"
:style="{ zIndex: 3 - index }" />
</NuxtLink>
</div>
</div>
</NeoButton>
<span v-if="followersCount > 3" class="text-sm">
+
{{ followersCount - (followers?.followers?.length ?? 0) }}
Expand Down Expand Up @@ -416,7 +416,6 @@ const { urlPrefix, client } = usePrefix()
const { shareOnX, shareOnFarcaster } = useSocialShare()
const { isRemark } = useIsChain(urlPrefix)
const listingCartStore = useListingCartStore()
const { chainProperties } = useChain()
const { hasProfile, userProfile, fetchProfile } = useProfile()
Expand Down

0 comments on commit 0c3951c

Please sign in to comment.