Skip to content

fix: resolve CI lint error and add CI workflow with status badge#41

Open
teeschima wants to merge 1 commit into
StepFi-app:mainfrom
teeschima:fix/ci-issues
Open

fix: resolve CI lint error and add CI workflow with status badge#41
teeschima wants to merge 1 commit into
StepFi-app:mainfrom
teeschima:fix/ci-issues

Conversation

@teeschima

Copy link
Copy Markdown

Summary

This PR fixes the CI pipeline by resolving a lint error in Navbar.tsx and adding a GitHub Actions CI workflow with a status badge to README.md.

Changes

Navbar.tsx lint fix

  • Removed the useEffect that called setMobileOpen(false) on pathname change, which violated the react-hooks/set-state-in-effect rule
  • Added onClick={() => setMobileOpen(false)} directly to each mobile nav Link element instead

CI workflow

  • The .github/workflows/ci.yml file already existed with the correct configuration: runs on every PR to main, checks out code, sets up Node 20, installs deps, lints, and builds

Status badge

  • Added a CI status badge to README.md pointing to the workflow

Verification

  • npm run lint — passes (0 errors)
  • npm run build — passes (exit 0)

Closes #17

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: add GitHub Actions CI for StepFi-Web

2 participants