diff --git a/packages/documentation-framework/components/sideNav/sideNav.js b/packages/documentation-framework/components/sideNav/sideNav.js index 0c6d56d576..e55828159e 100644 --- a/packages/documentation-framework/components/sideNav/sideNav.js +++ b/packages/documentation-framework/components/sideNav/sideNav.js @@ -96,7 +96,7 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) => source.source === "react-deprecated" || source.source === "html-deprecated") && !navObj.sources.some(source => source.source === "react" || source.source === "html") ), - isBeta: navObj.sources.some(source => source.beta), + isBeta: navObj.sources.some(source => source.beta && source.source !== 'react-next'), isDemo: navObj.sources.some(source => ( source.source === "react-demos" || source.source === "html-demos") && !navObj.sources.some(source => source.source === "react" || source.source === "html") diff --git a/packages/documentation-framework/templates/mdx.js b/packages/documentation-framework/templates/mdx.js index 19e1815958..d3052945fa 100644 --- a/packages/documentation-framework/templates/mdx.js +++ b/packages/documentation-framework/templates/mdx.js @@ -152,7 +152,7 @@ export const MDXTemplate = ({ componentsData }) => { const isDeprecated = sources.some(source => source.source === "react-deprecated" || source.source === "html-deprecated") && !sources.some(source => source.source === "react" || source.source === "html"); - const isBeta = sources.some(source => source.beta) + const isBeta = sources.some(source => source.beta && source.source !== 'react-next') const isDemo = sources.some(source => source.source === "react-demos" || source.source === "html-demos") && !sources.some(source => source.source === "react" || source.source === "html"); // Build obj mapping source names to text displayed on tabs const tabNames = sources.reduce((acc, curSrc) => {