fix(dashboard,medusa): Minor clean-up of admin v2 (#7257)

This commit is contained in:
Oli Juhl
2024-05-07 09:39:42 +02:00
committed by GitHub
parent 14d15df866
commit 8b61dccd0f
7 changed files with 21 additions and 26 deletions

View File

@@ -87,10 +87,11 @@ const useCoreRoutes = (): Omit<NavItemProps, "pathname">[] => {
label: t("orders.domain"),
to: "/orders",
items: [
{
label: t("draftOrders.domain"),
to: "/draft-orders",
},
// TODO: Enable when domin is introduced
// {
// label: t("draftOrders.domain"),
// to: "/draft-orders",
// },
],
},
{
@@ -98,18 +99,20 @@ const useCoreRoutes = (): Omit<NavItemProps, "pathname">[] => {
label: t("products.domain"),
to: "/products",
items: [
{
label: t("collections.domain"),
to: "/collections",
},
// TODO: Enable when domin is introduced
// {
// label: t("collections.domain"),
// to: "/collections",
// },
{
label: t("categories.domain"),
to: "/categories",
},
{
label: t("giftCards.domain"),
to: "/gift-cards",
},
// TODO: Enable when domin is introduced
// {
// label: t("giftCards.domain"),
// to: "/gift-cards",
// },
],
},
{

View File

@@ -37,18 +37,10 @@ const useSettingRoutes = (): NavItemProps[] => {
label: t("regions.domain"),
to: "/settings/regions",
},
{
label: t("returnReasons.domain"),
to: "/settings/return-reasons",
},
{
label: "Taxes",
to: "/settings/taxes",
},
{
label: "Locations",
to: "/settings/locations",
},
{
label: t("salesChannels.domain"),
to: "/settings/sales-channels",