Skip to content

Revert "sponsor withdrawal flow"#42

Open
Truphile wants to merge 1 commit into
StepFi-app:mainfrom
Truphile:revert-38-feat/sponsor-withdrawal-flow
Open

Revert "sponsor withdrawal flow"#42
Truphile wants to merge 1 commit into
StepFi-app:mainfrom
Truphile:revert-38-feat/sponsor-withdrawal-flow

Conversation

@Truphile

Copy link
Copy Markdown
Contributor

closes
#12

✦ The linting error in src/components/layout/Navbar.tsx was caused by a
useEffect that synchronously updated mobileOpen state upon navigation
(pathname change), which triggered a cascading render and violated React best
practices as identified by the react-hooks/set-state-in-effect linting rule.

To resolve this, I refactored the Navbar component to explicitly close the
mobile menu using onClick handlers on the navigation links and the logo,
removing the problematic useEffect entirely.

I verified the fix by running the linting command for the specific file and
the entire project, both of which passed successfully.

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.

1 participant