ContriHUB / CREDLOCKS

CredLock is a thriving haven for college students, fostering a supportive community that nurtures personal growth and academic excellence. Our mission is deeply rooted in empowering students through shared experiences and valuable educational resources.
MIT License
0 stars 7 forks source link

Remove the Follow Button from My_Profile #12

Closed RajatX24 closed 1 month ago

RajatX24 commented 1 month ago

This PR closes #8

Summary

Initially when the user navigated to the My Profile page, the follow button was rendered. This didn't make any sense as a user cannot follow himself/herself. Also clicking on the button resulted in an error message being shown as expected. This error message led to poor user experience.

This PR fixes this issue by modifying the My Profile page such that the follow button is not rendered when a user navigates to the My Profile page.

Description

Why can we use usernames as unique identifier for users?

Type of change

Motivation and Context

To improve user experience and avoid any confusion that may arise due to a follow button being displayed on My Profile page.

How Has This Been Tested?

The change made has been tested as follow:

Screenshot 2024-10-17 233618

Screenshot 2024-10-17 232655

Screenshots:

BEFORE:

UI:

error

CODE:

Screenshot 2024-10-18 003428

AFTER:

UI:

Screenshot 2024-10-17 232655-crop

CODE:

Screenshot 2024-10-18 003214

Checklist:

Test Configuration: