Skip to content

Commit

Permalink
remove menu and settings items
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtl committed Jan 18, 2024
1 parent d6a0da3 commit d25474a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
16 changes: 8 additions & 8 deletions packages/admin-ui/ui/src/components/organisms/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,35 +66,35 @@ const Sidebar: React.FC = () => {
triggerHandler={triggerHandler}
text={t("sidebar-orders", "Orders")}
/>
<SidebarMenuItem
{/* <SidebarMenuItem
pageLink={"/a/products"}
icon={<TagIcon size={ICON_SIZE} />}
text={t("sidebar-products", "Products")}
triggerHandler={triggerHandler}
/>
{isFeatureEnabled("product_categories") && (
/> */}
{/* {isFeatureEnabled("product_categories") && (
<SidebarMenuItem
pageLink={"/a/product-categories"}
icon={<SwatchIcon size={ICON_SIZE} />}
text={t("sidebar-categories", "Categories")}
triggerHandler={triggerHandler}
/>
)}
)} */}
<SidebarMenuItem
pageLink={"/a/customers"}
icon={<UsersIcon size={ICON_SIZE} />}
triggerHandler={triggerHandler}
text={t("sidebar-customers", "Customers")}
/>
{inventoryEnabled && (
{/* {inventoryEnabled && (
<SidebarMenuItem
pageLink={"/a/inventory"}
icon={<BuildingsIcon size={ICON_SIZE} />}
triggerHandler={triggerHandler}
text={t("sidebar-inventory", "Inventory")}
/>
)}
<SidebarMenuItem
)} */}
{/* <SidebarMenuItem
pageLink={"/a/discounts"}
icon={<SaleIcon size={ICON_SIZE} />}
triggerHandler={triggerHandler}
Expand All @@ -105,7 +105,7 @@ const Sidebar: React.FC = () => {
icon={<GiftIcon size={ICON_SIZE} />}
triggerHandler={triggerHandler}
text={t("sidebar-gift-cards", "Gift Cards")}
/>
/> */}
<SidebarMenuItem
pageLink={"/a/pricing"}
icon={<CashIcon size={ICON_SIZE} />}
Expand Down
82 changes: 41 additions & 41 deletions packages/admin-ui/ui/src/domain/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,56 +34,56 @@ type SettingsCardType = {
}

const settings: SettingsCardType[] = [
{
heading: "API Key Management",
description: "Create and manage API keys",
icon: KeyIcon,
to: "/a/publishable-api-keys",
feature_flag: "publishable_api_keys",
},
{
heading: "Currencies",
description: "Manage the currencies of your store",
icon: CoinsIcon,
to: "/a/settings/currencies",
},
// {
// heading: "API Key Management",
// description: "Create and manage API keys",
// icon: KeyIcon,
// to: "/a/publishable-api-keys",
// feature_flag: "publishable_api_keys",
// },
// {
// heading: "Currencies",
// description: "Manage the currencies of your store",
// icon: CoinsIcon,
// to: "/a/settings/currencies",
// },
{
heading: "Personal Information",
description: "Manage your Medusa profile",
icon: HappyIcon,
to: "/a/settings/personal-information",
},
{
heading: "Regions",
description: "Manage shipping, payment, and fulfillment across regions",
icon: MapPinIcon,
to: "/a/settings/regions",
},
{
heading: "Return Reasons",
description: "Manage reasons for returned items",
icon: ArrowUTurnLeft,
to: "/a/settings/return-reasons",
},
{
heading: "Sales Channels",
description: "Control which product are available in which channels",
icon: ChannelsIcon,
feature_flag: "sales_channels",
to: "/a/sales-channels",
},
// {
// heading: "Regions",
// description: "Manage shipping, payment, and fulfillment across regions",
// icon: MapPinIcon,
// to: "/a/settings/regions",
// },
// {
// heading: "Return Reasons",
// description: "Manage reasons for returned items",
// icon: ArrowUTurnLeft,
// to: "/a/settings/return-reasons",
// },
// {
// heading: "Sales Channels",
// description: "Control which product are available in which channels",
// icon: ChannelsIcon,
// feature_flag: "sales_channels",
// to: "/a/sales-channels",
// },
{
heading: "Store Details",
description: "Manage your business details",
icon: CrosshairIcon,
to: "/a/settings/details",
},
{
heading: "Taxes",
description: "Manage taxes across regions and products",
icon: TaxesIcon,
to: "/a/settings/taxes",
},
// {
// heading: "Taxes",
// description: "Manage taxes across regions and products",
// icon: TaxesIcon,
// to: "/a/settings/taxes",
// },
{
heading: "The Team",
description: "Manage users of your Medusa Store",
Expand Down Expand Up @@ -175,12 +175,12 @@ const Settings = () => {
<Routes>
<Route index element={<SettingsIndex />} />
<Route path="/details" element={<Details />} />
<Route path="/regions/*" element={<Regions />} />
{/* <Route path="/regions/*" element={<Regions />} />
<Route path="/currencies" element={<CurrencySettings />} />
<Route path="/return-reasons" element={<ReturnReasons />} />
<Route path="/return-reasons" element={<ReturnReasons />} /> */}
<Route path="/team" element={<Users />} />
<Route path="/personal-information" element={<PersonalInformation />} />
<Route path="/taxes/*" element={<Taxes />} />
{/* <Route path="/taxes/*" element={<Taxes />} /> */}
{getSettings().map((s) => (
<Route
key={s.path}
Expand Down

0 comments on commit d25474a

Please sign in to comment.