Skip to content

fix : replace nested button elements with div in Sidebar#428

Open
LaibaFirdouse wants to merge 1 commit into
potpie-ai:mainfrom
LaibaFirdouse:fix/sidebar-nested-button
Open

fix : replace nested button elements with div in Sidebar#428
LaibaFirdouse wants to merge 1 commit into
potpie-ai:mainfrom
LaibaFirdouse:fix/sidebar-nested-button

Conversation

@LaibaFirdouse

Copy link
Copy Markdown

Fixes invalid nested button elements rendered by sidebar menu items.

Result

  • Removes React hydration warnings
  • Prevents <button> inside <button> DOM nesting errors

Fixes #427

@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@LaibaFirdouse, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 36 minutes and 1 second. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9ed174c7-5644-4ecc-afa7-f0b0c26a17be

📥 Commits

Reviewing files that changed from the base of the PR and between f450ea3 and e4910e2.

📒 Files selected for processing (1)
  • components/Layouts/Sidebar.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@LaibaFirdouse
LaibaFirdouse force-pushed the fix/sidebar-nested-button branch from e598451 to c7ee2eb Compare June 11, 2026 19:30
@LaibaFirdouse
LaibaFirdouse force-pushed the fix/sidebar-nested-button branch from c7ee2eb to e4910e2 Compare June 11, 2026 19:39
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.

[Bug]: Sidebar menu renders nested button elements causing React hydration warnings

1 participant