docs(ui,docs): added upgrade guides link to UI docs (#5240)

* added medusa ui index page

* remove console
This commit is contained in:
Shahed Nasser
2023-09-27 20:06:03 +03:00
committed by GitHub
parent 11b2f1237b
commit aecf719871
9 changed files with 58 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
function excludeSidebarResults(sidebarItems, categoryItem) {
const results = []
sidebarItems.forEach((item) => {
if (item.type === "category") {
results.push({
...item,
items: excludeSidebarResults(item.items, categoryItem),
})
} else if (!item.customProps?.exclude_from_auto_sidebar) {
return results.push(item)
}
})
return results
}
module.exports = excludeSidebarResults