fix(showcase): V11 hide API tab when API page is not available#8464
fix(showcase): V11 hide API tab when API page is not available#8464Coderxrohan wants to merge 1 commit intoprimefaces:v11from
Conversation
|
Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>. |
|
Context & Resolution Summary
Follow-up for V11
|
|
Hi @tanerengiiin / PrimeTek team, |
|
merge conflict |
Hi @melloware, I rebased this branch on the latest v11. |
|
Since |
Problem
In the PrimeReact v11 showcase, the API tab is rendered for all components.
For some components (e.g.
Tabs), an API page does not exist, so clicking the API tab navigates users to a non-existent route and results in a 404.Solution
This PR updates the documentation tab UI to conditionally hide the API tab when an API page is not available for a component.
/apilinksResult
/apiroutes remains unchanged (404), by designScope
apps/showcase/components/docs/doc-tabs.tsxFixes #8465 [v11] Backport: Hide API tab when API page is not available (Fixed in master)