Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feat : Clicking Open The List of "Following Users" at "/profile" ] #1182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rohitPandey469
Copy link

Description

Changes over the PR #1181 ( for the workings of follow button ) - so do look that PR first.
Added a new function getUserFollowings taking uid as params and returning an array followings of all the users whom the current user follows. Then loading that data in UserProfile component and sending it to ProfileCardOne, in this card a modal which is opening when the user followings count is clicked.

Related Issue

Fixes #1178

Motivation and Context

A Dynamic Web Platform.

How Has This Been Tested?

Tested locally on my machine.

Video:

4d189da2-51e6-440d-8b03-d0507b8df566.mp4

In PR #1181, I was sending the same profileToFollowData in every UserElement component, but here sending differently that's why independent or more specifically the uids of all the four already present users, and the following count is changing and along with its list... the page re rendering is because of the profileData getting changed in the homepage, explained it more in above mentioned PR.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Additional:

Will make the PR for current user followers separately - cause I like clean and explainable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ Feat : Click To Open Modal For User Followings ]
1 participant