Skip to content

Commit e15a8a1

Browse files
authored
Merge pull request #156 from BeyteFlow/copilot/verify-navbar-cta-button
Fix invalid interactive nesting in mobile navbar GitHub CTA
2 parents 8b77b5c + 329dc16 commit e15a8a1

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/components/layout/Navbar.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,19 @@ export const Navbar = ({
100100
</a>
101101
))}
102102
<GitHubLoginButton onBeforeSignIn={() => setIsMenuOpen(false)} />
103-
<a
104-
href="https://github.com/BeyteFlow/ReadmeGenAI"
105-
target="_blank"
106-
rel="noopener noreferrer"
107-
className="w-full"
103+
<Button
104+
asChild
105+
variant="primary"
106+
className="mt-4 w-full justify-center"
108107
>
109-
<Button variant="primary" className="mt-4 w-full justify-center">
108+
<a
109+
href="https://github.com/BeyteFlow/ReadmeGenAI"
110+
target="_blank"
111+
rel="noopener noreferrer"
112+
>
110113
<Github size={18} /> Star our Repo
111-
</Button>
112-
</a>
114+
</a>
115+
</Button>
113116
</div>
114117
)}
115118
</nav>

0 commit comments

Comments
 (0)