Mansi168 / EmoWell

https://emo-well.vercel.app/
33 stars 82 forks source link

Updated PrivacyPolicy.jsx #312

Closed Satuti99 closed 4 months ago

Satuti99 commented 4 months ago

To Scroll to the top of the page when the component is mounted (Issue #199)

Related Issue

This bug involves a situation where clicking on the privacy and policy link does not result in scrolling to the top of the privacy page or section. Instead, the user remains on the same line or position within the privacy content, causing navigation confusion and potentially affecting user experience.

Description

To resolve the issue where clicking on the privacy policy link doesn't scroll to the top of the page or section, I have used a combination of React's useEffect and scrollTo method to ensure the page scrolls to the top whenever the component is rendered.

Type of PR

Screenshots / videos (if applicable)

https://github.com/user-attachments/assets/3ccd96ff-820c-4ca1-a1bf-2769ada43926

Checklist:

vercel[bot] commented 4 months ago

@Satuti99 is attempting to deploy a commit to the My Team Team on Vercel.

A member of the Team first needs to authorize it.

Satuti99 commented 4 months ago

Respected ma'am @Mansi168 Please merge my pull request.

Mansi168 commented 4 months ago

please resolve conflicts. image

Satuti99 commented 4 months ago

@Mansi168 resolved .Please check

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
emo-well ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2024 4:19pm
Satuti99 commented 4 months ago

Respected ma'am @Mansi168 please add my name in assignees and add all necessary labels so that my score can be updated on leaderboard.