Skip to content

Commit

Permalink
Merge pull request #796 from bluehost/update/marketplace-subnav
Browse files Browse the repository at this point in the history
Update/marketplace subnav
  • Loading branch information
circlecube authored Nov 7, 2023
2 parents 990a52b + 253d79b commit bac6500
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 46 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"newfold-labs/wp-module-global-ctb": "^1.0.9",
"newfold-labs/wp-module-help-center": "1.0.21",
"newfold-labs/wp-module-loader": "^1.0.10",
"newfold-labs/wp-module-marketplace": "^2.0.2",
"newfold-labs/wp-module-marketplace": "^2.1.0",
"newfold-labs/wp-module-notifications": "^1.1.6",
"newfold-labs/wp-module-onboarding": "^1.11.8",
"newfold-labs/wp-module-patterns": "^0.1.8",
Expand Down
37 changes: 20 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 2 additions & 28 deletions src/app/data/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import Marketplace from '../pages/marketplace';
import Performance from '../pages/performance';
import Settings from '../pages/settings';
import Staging from '../pages/staging';
import Example from '../pages/example';
import Help from '../pages/help';
import { getMarketplaceSubnavRoutes } from '../../../vendor/newfold-labs/wp-module-marketplace/components/marketplaceSubnav';
import { ReactComponent as HelpIcon } from "../components/icons/HelpIcon.svg";

const addPartialMatch = (prefix, path) =>
Expand Down Expand Up @@ -107,33 +107,7 @@ export const routes = [
title: __( 'Marketplace', 'wp-plugin-bluehost' ),
Component: Marketplace,
Icon: ShoppingBagIcon,
subRoutes: [
{
name: '/marketplace/featured',
title: __( 'Featured', 'wp-plugin-bluehost' ),
},
{
name: '/marketplace/services',
title: __( 'Services', 'wp-plugin-bluehost' ),
},
{
name: '/marketplace/ecommerce',
title: __( 'eCommerce', 'wp-plugin-bluehost' ),
},
{
name: '/marketplace/seo',
title: __( 'SEO', 'wp-plugin-bluehost' ),
},
{
name: '/marketplace/security',
title: __( 'Security', 'wp-plugin-bluehost' ),
},
{
name: '/marketplace/themes',
title: __( 'Themes', 'wp-plugin-bluehost' ),
},

],
subRoutes: await getMarketplaceSubnavRoutes(),
},
{
name: '/performance',
Expand Down

0 comments on commit bac6500

Please sign in to comment.