Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docusaurus/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,18 @@ export default function DocsVersionDropdownNavbarItemWrapper(props) {
if (!doesPathnameContainDocsPluginId) {
return null;
}
return <DocsVersionDropdownNavbarItem {...props} />;

const modifiedProps = { ...props };

// Check if props has items and modify the "Next" label
if (props.items) {
modifiedProps.items = props.items.map(item => {
if (item.label === 'Next') {
return { ...item, label: 'Cloud / Next version' };
}
return item;
});
}

return <DocsVersionDropdownNavbarItem {...modifiedProps} />;
}
Loading